I have some function I want to time, but I have no idea how to do it. In javascript I can just get the current time in milliseconds, run the rest of my function, get the current time in milliseconds again and alert the difference. Viola, I know how long the function ran.
In ActionScript, it runs everything at once, so my start and end times are the same. How can I measure the span of time a function is taking to process?
Thanks,