ActionScript : Find code execution time

Using the script below you can find how much time it took to execute your ActionScript code

var startTime:Date = new Date();

// execute your code here

var endTime:Date = new Date();
trace("Time take to execute the code "+String(endTime.getTime()-startTime.getTime())+" milliseconds");

Check PHP version here

Check Javascript version here

This entry was posted in ActionScript, Flash/Flex, Web development and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>