Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 Calculate time to run a script

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-11-15 : 10:46:42
Hello,
how do you calculate the time to run a script in ASP VB script ?


[CODE]<%
start_time = ???

'run script here

end_time = ???

%>[/CODE]

thanks

Afrika

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-11-15 : 11:04:46
How about this:

<%
start_time = now()

'run script here

end_time = now()

diff = DateDiff("s", start_time, end_time)

%>


Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page
   

- Advertisement -