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:

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="goTimer()" creationComplete="goTimer()">

            <mx:Script>

                        <![CDATA[

                                    private function goTimer():void{

                                               

                                                trace(getTimer());

                                    }

                        ]]>

            </mx:Script>

</mx:Application>

 

- 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




__,_._,___

Reply via email to