Counting Milliseconds

Added By: yahavbr

Rated:
(2 of 5) by 4.
Rate Snippet:
Description:  Ever wanted to measure how much time your code is running on the Server? Now you can do it. You have to include the file "Advanced.inc" in the ASP page, and then you can get the time of, for example, SortArray(), like this: step1=getMiliSeconds() SortArray(myArray) step2=getMiliSeconds() Response.Write("it took "&(step2-step1)&" milliseconds.") Below is the code for the included file and example of use. To view full example, you can visit http://www24.brinkster.com/yahavbr/Sorting/ and see how I measure exact running times of different algorithms.
Language:  Visual Basic Script

Save to web space
E-mail Link

Code Snippet: