<% sub StartTimer(x) ':::::::::::::::::::::::::::::::::::::::::::::::::::: '::: Here we start the timer ::: ':::::::::::::::::::::::::::::::::::::::::::::::::::: StopWatch(x) = timer end sub function StopTimer(x) ':::::::::::::::::::::::::::::::::::::::::::::::::::: '::: Here we 'stop' the timer and calculate ::: '::: the elapsed time (allowing for the ::: '::: midnight wrap-around. NOTE: These ::: '::: routines should not be used to time ::: '::: very long events (>1 hour) or very ::: '::: short events (< 100 milliseconds) ::: ':::::::::::::::::::::::::::::::::::::::::::::::::::: EndTime = Timer 'Watch for the midnight wraparound... if EndTime < StopWatch(x) then EndTime = EndTime + (86400) end if StopTimer = EndTime - StopWatch(x) end function %>