I use this function below. Passing in "start" resets the timer, otherwise
it lists the elapsed time between calls.
public function traceTimer(sMsg:String, sMode:String="running"):void
{
var iTimer:int = getTimer();
if (sMode == "start") {
timerTrace = iTimer;
}
var iElapsed:int = iTimer - timerTrace;
timerTrace = iTimer;
trace(iElapsed + ": " + sMsg)
}
Tracy Spratt,
Lariat Services, development services available
_____
From: [email protected] [mailto:[email protected]] On
Behalf Of kanu kukreja
Sent: Friday, October 30, 2009 2:29 AM
Subject: [SPAM] [flexcoders] Function Execution Time
How can I find/get execution time of particular function data?