Extension cook time?

Is there any build in way to measure the cooktime of a function in an extension?

Not sure about built into td but…

Python provides this with timeit:
https://nyu-cds.github.io/python-performance-tips/02-timing/

Alternatively, you could subtract datetime.now() at the start of your function from the end and print the result to the console.

Thx. That’s what I’m using now. It works fine

Still wondering if these extension cook times show up somewhere in the performance monitor/dat so you can quickly pinpoint the extension that is causing the slowdowns when you start dropping frames

In tscript days there was a way to mark [start|stop] a piece of code and it would be Included in the perf monitor. Pretty much the same as timeit , but embedded in the TD optimization workflow

I am new to using extensions but I noticed this sentence in old release notes:
Performance Monitor now logs extension execution times.
Therefore I guess you should be able to find them in Performance Monitor :slight_smile: