Thursday, July 2, 2009

Showing Page Load Time: Asp Classic/VBScript


Page Load Time: Asp Classic/VBScript



Shows the script page load time at the bottom of each ASP page.



At the header of the Page:

<%

dim starttime

startrime = Timer

%>



At the footer of the page:

<%

dim endtime,timetaken

endtime = Timer

timetaken = FormatNumber(endtime - starttime,4)

response.write "page load time: " & timetaken & " seconds"

%>