hi larry,
a quick and simple way is to create a "time" object that gets the current time (sec and msec) via gettimeofday(). should be a "empty" object with just one in and outlet that passes through all that comes in. at the moment something comes in, get the time, and at the end of the chain place the same object to get the time when the processed data comes out. the difference of booth times is an good approximation of the needed execution time. its not that accurate, as it depends on system functions to get the actual time. but it works, i use the same way in a jmax to meassure some things .... _THIS IS NOT USABLE FOR REAL PROFILING !!_ to make it clear. but its enough to get a good idea how much time is spent .....
greets,
chris
Am Sonntag, 2. Dezember 2001 02:24 schrieb Larry Troxler:
Is there a way (or could there be made a way) to time how long it takes for PD to do its message processing when an event arrives?
In my case, I'm interested in measuring how long my scheme externs take to run (which I fear is longer than is good), but of course, such a feature might be usefull for anyone who is running a complex message process in an extern and wants to know if they run a chance of missing the next DSP deadline.
Just to be clear, I'm not talking about DSP processing time, but strictly the message passing time (which is intermittent, but might take a long time when it happens).
Regards
Larry Troxler