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