@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny
Sent: Friday, June 30, 2006 9:54
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trace timing
I'm
trying to find where all the time is being spent in my app. I tried
using:
trace(new Date().toTimeS
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
I'm trying to find where all the time is being spent in my app. I tried
using:
trace(new Date().toTimeString() + ': Starting xyz');
But the timestring only goes to seconds. Is there any better way to have
more accurate timestamps in my trace statements? I'm worried if I do:
.Seconds + .Milliseco
5 matches
Mail list logo