Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Timer

  1. #1
    Regular Coder Freon22's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    287
    Thanks
    3
    Thanked 5 Times in 5 Posts

    Timer

    I have a simple timer script that I use to time my script runtime. Its something like this.

    Code:
    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?

  • #2
    Regular Coder Freon22's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    287
    Thanks
    3
    Thanked 5 Times in 5 Posts

    Never Mind

    Thanks anyway, I worked it out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •