Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find the loading time of a ASP page ?

Status
Not open for further replies.

tejo

Programmer
Jul 5, 2001
2
US
I want to check how much time my ASP page is taking to load.
For this I have created a table in the database server.
What I want ideally is, when ever a user requests the page I want the "start time" and WHEN EVER THE LOADING IS COMPLETE that "end time" to be noted down dynamically.
Can this be possible using any ASP in-build object or can I use any in-build events, some thing like "on_loading_start" and "on_loading_complete" .

 
All depends. Do you want to find the loading time or the processing time?

Most likely what you are looking for is the processing time of the script. This is easily done with the timer function. You will have to Dim a variable and set it equal to the current value from the Timer() function. Do this at the beginning of the code or block of code you wish to profile. Next put a response.write Timer() - varTimer to send the time to the browser. You can place the response.write lines throughout your code to give you an idea of what loads fast and what loads slow.

Eric Repec
eric@ericrepec.com
If its not broke try it make it faster.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top