0
rated 0 times
[
3]
[
3]
/ answers: 1 / hits: 44920
/ 15 Years ago, thu, december 31, 2009, 12:00:00
What is a good way to measure code execution time in VBScript?
Or failing that how to do it in JavaScript?
More From » vbscript
What is a good way to measure code execution time in VBScript?
Or failing that how to do it in JavaScript?
For VBScript you can use Timer:
StartTime = Timer()
EndTime = Timer()
Response.Write(Seconds to 2 decimal places: & FormatNumber(EndTime - StartTime, 2))
Or ASP Profiler (that is for an ASP environment.)
For JavaScript you can use Date:
var start = new Date().getTime()
alert(Milliseconds: + (new Date().getTime() - start))
Firebug also has a profiler for JavaScript.