Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Web
Expertise: Intermediate
Apr 11, 2000



Application Security Testing: An Integral Part of DevOps

Determine How Fast Your ASP Scripts Really Are

Often when you're developing script, you may want to determine just how long the code takes to run. To do so, take advantage of ASP's built-in Timer function. As you may know, this function returns the number of seconds since midnight. To use this function, capture the current value before your script runs, then again afterwards, and compare the two. While this method can vary depending on processor speeds, it provides a decent benchmark.
<% myStart = timer %>
<b>Start: <%= myStart%></b>
<% For x = 1 to 1000 
set myObj = Server.CreateObject("ADODB.Recordset")
set myObj = nothing
myEnd = timer
<b>End: <%=myEnd%></b>
<b>Ellapsed Time: <%= myEnd - myStart %> (seconds)</b>
Manoj K.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date