[thelist] Re: ASP script running time.

pouncyisdead pouncy_1 at hotmail.com
Wed Mar 12 14:55:49 CST 2003


[snip src="darren at web-itch.co.uk" subject="ASP script running time"]
Does anyone have a way of calculating the running time of a script in a
VBScript ASP page? I would like to print out how long it took to process the
page and print it at the bottom.
[/snip]




I use the snippet below to time scripts:

<%
'-- Script Timer Config
 DIM nStartTime,nEndTime,nTime
   nStartTime = Timer()


'-- Input your code here! --'
'...
'--  End your code here!  --'


   nEndTime = Timer()

'-- Find and write total elapsed time.
 nTime = nEndTime - nStartTime
 Response.Write(nTime)
%>


Mike Pouncy // Glyph at AvantArts.com
http://www.AvantArts.com | Injecting Culture into Las Vegas


More information about the thelist mailing list