|
|
|||||||
I was wondering if anyone knows how I can track the amount of time it takes to run a script? I am using kix for company logon scripts, and I want to see if I can track how long it takes to run the scripts at logon. If possible, I would like to log the results somewhere also... Any ideas? |
||||||||
|
|
|||||||
Sure. Something like this should work. Code: $start = @ticks ;do all kinds of stuff. $end = @ticks $time = $end - $start ?"Your script ussed: " + $time + " milliseconds to complete." |
||||||||
|
|
|||||||
Thanks a lot. This works just great. much appreciated. |