Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 2nd, 2005, 03: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)?
  #2 (permalink)  
Old February 2nd, 2005, 04: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
  #3 (permalink)  
Old February 2nd, 2005, 04: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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Execution time baaul Reporting Services 2 February 3rd, 2015 04: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 08: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.