Timer Function Fixes
Written by Eric Smith, Northstar Computer Systems LLC
In a previous tip, I showed you how to time the execution of a function within ASP. However, that code didn't take into account the fact that a script might execute over the change from one day to the next. A reader sent in this corrected version of the code:
Dim StartTime, EndTime
StartTime = Timer
' whatever code you want to time
EndTime = Timer
If StartTime > EndTime Then
EndTime = EndTime + 86400
End If
TimeIt = EndTime - StartTime
Keywords: [
Uncategorized ASP Tips
]
Publication Date: 8/9/2000
|