View Full Version : Timer

10-01-2005, 06:23 AM
I have a simple timer script that I use to time my script runtime. Its something like this.

Dim StartTime
StartTime = Timer
'Then I run my code and what ever. At the end I do something like this

Dim EndTime, RunTime
EndTime = Timer
RunTime = EndTime - StartTime
Response.Write("script runtime " & RunTime & " seconds")

So anyway it works great until one night just after 12 am server time I seen script runtime: 6.201 seconds how I know that can't be right. The page loaded in less then a second. The script on this page normally runs in 0.450 seconds, I also know that the timer counts the seconds from 12am. I just don't know why it should be showing a 6 second run time. Any ideas why?

10-03-2005, 12:47 AM
Thanks anyway, I worked it out.