Often when you’re developing script, you may want to determinejust how long the code takes to run. To do so, take advantage ofASP’s built-in Timer function. As you may know, this functionreturns the number of seconds since midnight. To use thisfunction, capture the current value before your script runs,then again afterwards, and compare the two. While thismethod can vary depending on processor speeds, it providesa decent benchmark.
<% myStart = timer %>Start: <%= myStart%>
<% For x = 1 to 1000 set myObj = Server.CreateObject("ADODB.Recordset")set myObj = nothingNextmyEnd = timer%>End: <%=myEnd%>
Ellapsed Time: <%= myEnd - myStart %> (seconds)