Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:18 PM
Dave
Guest
 
Posts: n/a
Default Script Execution Time

Is there an easy way to determine how long it took a particular page to
execute?
  #2  
Old July 19th, 2005, 02:18 PM
Manohar Kamath [MVP]
Guest
 
Posts: n/a
Default Re: Script Execution Time

You could set a time variable at the top of the page, and compare with the
time at the end of the page. The difference is the time you want.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com


"Dave" <just1coder@yahoo.ca> wrote in message
news:ebAie3obEHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> Is there an easy way to determine how long it took a particular page to
> execute?[/color]


  #3  
Old July 19th, 2005, 02:18 PM
Dave
Guest
 
Posts: n/a
Default Re: Script Execution Time

Manohar Kamath [MVP] wrote:
[color=blue]
> You could set a time variable at the top of the page, and compare with the
> time at the end of the page. The difference is the time you want.
>[/color]
Would you be able to give me an example? :)
  #4  
Old July 19th, 2005, 02:19 PM
Auric__
Guest
 
Posts: n/a
Default Re: Script Execution Time

On Tue, 20 Jul 2004 15:25:53 -0400, Dave wrote:
[color=blue]
>Manohar Kamath [MVP] wrote:
>[color=green]
>> You could set a time variable at the top of the page, and compare with the
>> time at the end of the page. The difference is the time you want.
>>[/color]
>Would you be able to give me an example? :)[/color]

At the very top:
<% x = Timer %>

At the very bottom:
<%
y = Timer
z = x - y
Response.Write "z = " & z
%>
--
auric underscore underscore at hotmail dot com
*****
What part of "not for kids" don't you fuckers understand?
  #5  
Old July 19th, 2005, 02:19 PM
Chris Hohmann
Guest
 
Posts: n/a
Default Re: Script Execution Time

"Dave" <just1coder@yahoo.ca> wrote in message
news:u91eb9obEHA.1644@tk2msftngp13.phx.gbl...[color=blue]
> Manohar Kamath [MVP] wrote:
>[color=green]
> > You could set a time variable at the top of the page, and compare with[/color][/color]
the[color=blue][color=green]
> > time at the end of the page. The difference is the time you want.
> >[/color]
> Would you be able to give me an example? :)[/color]

Dim start
start = Timer
' Do some stuff
Response.Write Timer - start


  #6  
Old July 19th, 2005, 02:19 PM
Dave
Guest
 
Posts: n/a
Default Re: Script Execution Time

Chris Hohmann wrote:[color=blue]
> "Dave" <just1coder@yahoo.ca> wrote in message
> news:u91eb9obEHA.1644@tk2msftngp13.phx.gbl...
>[color=green]
>>Manohar Kamath [MVP] wrote:
>>
>>[color=darkred]
>>>You could set a time variable at the top of the page, and compare with[/color][/color]
>
> the
>[color=green][color=darkred]
>>>time at the end of the page. The difference is the time you want.
>>>[/color]
>>
>>Would you be able to give me an example? :)[/color]
>
>
> Dim start
> start = Timer
> ' Do some stuff
> Response.Write Timer - start
>
>[/color]
wow. didn't think it was T H A T easy! ;)
  #7  
Old July 19th, 2005, 02:19 PM
Aaron [SQL Server MVP]
Guest
 
Posts: n/a
Default Re: Script Execution Time

http://www.aspfaq.com/2092

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Dave" <just1coder@yahoo.ca> wrote in message
news:ebAie3obEHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> Is there an easy way to determine how long it took a particular page to
> execute?[/color]


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles