ASP.net VB Timers
Posted
by Tom Gullen
on Stack Overflow
See other posts from Stack Overflow
or by Tom Gullen
Published on 2010-06-08T13:40:59Z
Indexed on
2010/06/08
13:42 UTC
Read the original article
Hit count: 355
I would like to be able to time a page load time in ASP.net (VBscript). Adding Trace="true" to the page directive is nice, but I need to actually time an event and store it in a variable.
In ASP it was easy with the Timer object, but in .net I can't find anything on Google.
I need something along the lines of:
Dim startTime
Dim endTime
startTime = now()
doBigFunction()
endTime = now()
response.write("That took " & endTime - startTime & " milliseconds")
Cheers!
© Stack Overflow or respective owner