ClientMaster
(Fresh Scripter)
2007-06-06 10:51 AM
Time for Script to Run

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?


Mart
(KiX Supporter)
2007-06-06 11:02 AM
Re: Time for Script to Run

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


ClientMaster
(Fresh Scripter)
2007-06-08 06:45 AM
Re: Time for Script to Run

Thanks a lot. This works just great.
much appreciated.