Forum Moderators: open

Message Too Old, No Replies

time for script to run

         

natty

4:01 pm on Jun 24, 2004 (gmt 0)

10+ Year Member



hi all ,

im wondering if there is some sort of server variable or something that will tell me how long it took to produce my page.

ie page toook 3.23 seconds to load type thing

tia

nat

Easy_Coder

4:35 pm on Jun 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not that I know of but you could uncork the ServerVariable Collection and see:
<%
for each x in Request.ServerVariables
response.write(x & "<br />")
next
%>

Or you could write your own solution by stamping the time at the top of the page and again at the bottom; then either determine the difference and then store that value in a table along with the page name or store both timestamp values if you choose to do so.

m_pageStartAt = Now()

your code....

m_pageEndAt = Now()

persist the timestamps or difference