Page 1 of 1 1
Topic Options
#176790 - 2007-06-06 10:51 AM Time for Script to Run
ClientMaster Offline
Fresh Scripter

Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
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?
_________________________
How can you know good, unless you experience bad.

Top
#176793 - 2007-06-06 11:02 AM Re: Time for Script to Run [Re: ClientMaster]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
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."
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#176819 - 2007-06-08 06:45 AM Re: Time for Script to Run [Re: Mart]
ClientMaster Offline
Fresh Scripter

Registered: 2005-01-19
Posts: 46
Loc: Tokyo, Japan
Thanks a lot. This works just great.
much appreciated.
_________________________
How can you know good, unless you experience bad.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 507 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.055 seconds in which 0.032 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org