Publisher review:VBScript Timer function returns the number of seconds that have elapsed since 12:00 AM (midnight). The VBScript Timer function returns the number of seconds that have elapsed since 12:00 AM (midnight).
In the code, the function TimeIt is called to pass in the parameter 10000 i.e. to loop ten thousand times. The Timer function will return the number of seconds to the millisecond since 12.00 AM midnight and assign to variable StartTime. Then the loop is executed 1 to 10000.
After that the Timer function will return the number of seconds since 12.00 AM midnight to variable EndTime.
To get the time the loop took to execute we simply subtract EndTime from StartTime. The function returns the time it takes.
VBScript Timer function is a ASP.NET script for Snippets scripts design by Michael Wall.
It runs on following operating system: Windows.
VBScript Timer function returns the number of seconds that have elapsed since 12:00 AM (midnight).
Operating system:Windows