Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 2nd, 2005, 02:56 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default script execution time

I want to show the execution time of scripts in a page. Just like

"This page was generated in 0.2 seconds."

shown in the pages of this forum.

For this, I am setting the current time at the beginning of the page. Then at the end of the page, I am again setting the current time in a different variable. Then I am finding the difference using datediff function.

However, I find that we cannot get the difference in microseconds using this method. May I know how can I get the current time including microseconds also ?

May I know there are any other methods to findout the script execution time using classic ASP only (No server side components)?
Reply With Quote
  #2 (permalink)  
Old February 2nd, 2005, 03:27 AM
Authorized User
 
Join Date: Aug 2004
Location: Calicut, Kerala, India.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use timer() for this.

for eg:

Dim s_time
s_time = timer()


---All your code---


Dim response_time
response_time = cdbl(timer() - s_time)





Shibu Narayanan
Software Associates
Reply With Quote
  #3 (permalink)  
Old February 2nd, 2005, 03:51 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Thanks.

This works correctly.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Execution time baaul Reporting Services 2 February 3rd, 2015 03:18 PM
Time page execution mat41 Classic ASP Professional 0 August 15th, 2007 01:16 AM
optimise it or speed up execution time perl script crmpicco Perl 2 November 22nd, 2006 07:31 AM
Script execution... dzagore2 Classic ASP Professional 0 May 9th, 2006 03:42 AM
script execution prob.. dzagore2 Classic ASP Basics 0 May 8th, 2006 04:18 AM



All times are GMT -4. The time now is 07:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.