Kent,
Unlikely you're going to be running a script overnight or through the midnight period for testing. If so then yeah you might need the other math UDFs for timing.
Here is a much smaller method that lets you put all the logging outside of your UDF.
Code:
Break On
Dim $SO,$Pause
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('WrapAtEOL','On')
Dim $CheckScript
$CheckScript = TimerTest(@LDRIVE+'newscript\kixtart.kix')
? 'Start Time: ' + $CheckScript[0]
? 'End Time: ' + $CheckScript[1]
? 'Elapsed Time: ' + $CheckScript[2]
COLOR 'R/W'
?? 'Process is complete.. Press a key' ?
Get $Pause
Function TimerTest($Script)
Dim $StartTime,$EndTime,$ElapsedTime
$StartTime=@TICKS
CALL $Script
$EndTime=@TICKS
$ElapsedTime=FormatNumber($EndTime-$StartTime,0,0,-1,-2)
$TimerTest=$StartTime,$EndTime,$ElapsedTime
EndFunction
Example script timing:
Start Time: 23381046
End Time: 23387328
Elapsed Time: 6,282