Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

Timer

The Timer function returns a count of the number of seconds that have passed since midnight according to the system's internal clock.

Response.Write "Seconds Since Midnight = " & Timer


This function returns a floating point number which includes milliseconds as well as whole seconds. This allows you to use the timer function to evaluate the performance of your scripts. An example of how this is done is shown below.

Dim fStart        ' start time when the script executes
Const PI = 3.1415926

fStart = Timer
For I = 0 To 2 Step 0.1
    Response.Write "Cos(" & I & " * PI) = "
    Response.Write Cos(I * PI) & "<BR>"
Next
Response.Write "Time to Run = " & (Timer - fStart) & " Seconds<BR>"

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"f u cn rd ths, u cn gt a gd jb n cmptr prgmmng." - Anon

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.