A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Function / Actionscript timer

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    257

    Function / Actionscript timer

    Hi, i was wondering how you do those action script timers where it tells you how long it took to run a function in like millisecs they appear on path finding things a lot but i cannot find and code also would it work on an include script to see how long it takes to load a txt/as file?


    Thanks a bunch peeps!

  2. #2
    Run for your life! Phlook's Avatar
    Join Date
    Jul 2003
    Location
    Vancouver, Canada
    Posts
    679
    code:

    function aFunction(){
    t = getTimer();
    //some code
    //some more code
    //even more code
    //ooh the code is ending soon
    //end of code here..
    trace("ms: "+(getTimer()-t));
    }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center