...

View Full Version : Timer



Freon22
10-01-2005, 05: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?

Freon22
10-02-2005, 11:47 PM
Thanks anyway, I worked it out.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum