'::::::::::::::::::::::::::::::::::::::::::::::::::::
'::: 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
%>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10294527/viewspace-124725/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10294527/viewspace-124725/