Try using trace(getTimer())
The getTimer method returns the number of
milliseconds since the instantiation of the swf within the browser/runtime.
http://livedocs.macromedia.com/labs/1/flex/langref/flash/util/package.html#getTimer()
Take a look at this:
06 15:11To:
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Trace
timing
Or event simpler...import flash.utils.getTimer; Returns
int — The number of
milliseconds since Flash Player was initialized. If the player starts
playing one SWF file, and another SWF file is loaded
Or event simpler...
import flash.utils.getTimer;
Returns
int — The number of milliseconds
since Flash Player was initialized. If the player starts playing one SWF file,
and another SWF file is loaded later, the return value is relative to when the
first SWF file was loaded.
Mike
Hi,
Couldn't you use the date object and call
valueOf():Number
Returns the number of milliseconds since
midnight January 1, 1970, universal time, for a Date object.
then make another date object on the next round you want to test and call the same thing and then subtract the two?
Just a t
4 matches
Mail list logo