RE: [flexcoders] Trace timing

2006-06-30 Thread Andrew Trice












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:

 





    

    

    





 

- Andy

__

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 











From: flexcoders@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().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 + .Milliseconds, the statements will evaluated at different
times, and therefore not accurate.

The information contained in this e-mail and/or any attachments is confidential
and intended only for the individual(s) to which it is addressed. If you are
not named as an addressee you must not disclose, copy or take any action in
reliance of this transmission. This e-mail and its attachments have been scanned
for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email

__






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Trace timing

2006-06-30 Thread Daniel Tuppeny





That'll do. I don't need to time (by subtracting), I just 
want a list of timestamps accurate enough so I can work out myself which things 
are taking longest! :)


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Michael 
SchmalleSent: 30 June 2006 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 later, the return 
  value is relative to when the first SWF file was loaded. 
Mike
On 6/30/06, Michael 
Schmalle <[EMAIL PROTECTED]> 
wrote:

  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 thought.Peace, Mike
  
  On 6/30/06, Daniel 
  Tuppeny <[EMAIL PROTECTED] > wrote:
  





I'm trying to find where all the time is being spent in my app. I 
triedusing:trace(new Date().toTimeString() + ': Starting 
xyz');But the timestring only goes to seconds. Is there any better 
way to havemore accurate timestamps in my trace statements? I'm worried 
if I do:.Seconds + .Milliseconds, the statements will evaluated at 
differenttimes, and therefore not 
accurate.The 
information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs 
Ltd.__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__
  -- What goes up, does come down. 
-- What goes up, does 
come down.  [Inbound Mail Scanned by 
MessageLabs]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Trace timing

2006-06-30 Thread Michael Schmalle



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
On 6/30/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
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 thought.

Peace, Mike

On 6/30/06, Daniel Tuppeny <[EMAIL PROTECTED]
> wrote:













  



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 + .Milliseconds, the statements will evaluated at different
times, and therefore not accurate.

The information contained in this e-mail and/or any attachments is
confidential and intended only for the individual(s) to which it is
addressed. If you are not named as an addressee you must not disclose,
copy or take any action in reliance of this transmission. This e-mail
and its attachments have been scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

  













-- What goes up, does come down.

-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Trace timing

2006-06-30 Thread Michael Schmalle



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 thought.

Peace, Mike

On 6/30/06, Daniel Tuppeny <[EMAIL PROTECTED]> wrote:













  



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 + .Milliseconds, the statements will evaluated at different
times, and therefore not accurate.

The information contained in this e-mail and/or any attachments is
confidential and intended only for the individual(s) to which it is
addressed. If you are not named as an addressee you must not disclose,
copy or take any action in reliance of this transmission. This e-mail
and its attachments have been scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

  













-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Trace timing

2006-06-30 Thread Daniel Tuppeny
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 + .Milliseconds, the statements will evaluated at different
times, and therefore not accurate.

The information contained in this e-mail and/or any attachments is confidential 
and intended only for the individual(s) to which it is addressed. If you are 
not named as an addressee you must not disclose, copy or take any action in 
reliance of this transmission. This e-mail and its attachments have been 
scanned for viruses by MessageLabs Ltd.

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/