Trying to get the following to work..

Requires:
LOGGER()
TIMEDIFF()
SERIALTIME()

Code:

cls
break on
TIMERTEST(@ldrive+'newscript\kixtart.kix')
?'Process is complete.. Press a key'
get $
FUNCTION TIMERTEST($script)
$logfile='C:\Timer.txt'
$starttime=@time
LOGGER($logfile,$starttime+@crlf)
CALL $script
$endtime=@time
LOGGER($logfile,$endtime+@crlf)
$rc=TIMEDIFF($starttime,$endtime)
LOGGER($logfile,$rc+@crlf)
ENDFUNCTION



Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's