Results 1 to 2 of 2

Thread: Timers

  1. #1
    Advanced Member
    Join Date
    Mar 2002
    Earth, USA, New York, Western


    All the timer functions I found are for changing the speed of the script being called or ran. Is there not a timer function to recode a time interval that a portion of a script took to run? I was going to do ‘StartTime = Date()’ and so on but thought I would ask first incase I over looked something.

  2. #2

    Re: Timers


    You can use the GetTickCount function. Run it when you start your script, when run it after some actions and subtract the first result from the second one. This will give you the number of millisends your actions were running.
    <font class="small">Code:</font><hr /><pre>...
    var startTime = GetTickCount();
    // some code
    var executionTime = GetTickCount() - startTime;
    ...</pre><hr />
    Jared - AQA Support



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:34 PM.

Copyright BetaSoft Inc.