473,383 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Script Execution Time

Is there an easy way to determine how long it took a particular page to
execute?
Jul 19 '05 #1
6 1565
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" <ju********@yahoo.ca> wrote in message
news:eb**************@tk2msftngp13.phx.gbl...
Is there an easy way to determine how long it took a particular page to
execute?

Jul 19 '05 #2
Manohar Kamath [MVP] wrote:
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.

Would you be able to give me an example? :)
Jul 19 '05 #3
On Tue, 20 Jul 2004 15:25:53 -0400, Dave wrote:
Manohar Kamath [MVP] wrote:
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.

Would you be able to give me an example? :)


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?
Jul 19 '05 #4
"Dave" <ju********@yahoo.ca> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
Manohar Kamath [MVP] wrote:
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.

Would you be able to give me an example? :)


Dim start
start = Timer
' Do some stuff
Response.Write Timer - start
Jul 19 '05 #5
Chris Hohmann wrote:
"Dave" <ju********@yahoo.ca> wrote in message
news:u9**************@tk2msftngp13.phx.gbl...
Manohar Kamath [MVP] wrote:

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.


Would you be able to give me an example? :)

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

wow. didn't think it was T H A T easy! ;)
Jul 19 '05 #6
http://www.aspfaq.com/2092

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


"Dave" <ju********@yahoo.ca> wrote in message
news:eb**************@tk2msftngp13.phx.gbl...
Is there an easy way to determine how long it took a particular page to
execute?

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Damien | last post by:
Hello to all, I've written a script that take quite a long time to execute (email sending). Last time I ran it, PHP gave me a "execution time limit exceeded" (or something like that), so I changed...
10
by: Doug | last post by:
I have a script that does a huge database update, which takes a long time. However, the host I am running on (and I suspect most hosts) are running in "safe mode." This means I cannot change the...
7
by: Adam | last post by:
Hi, I am working on a project that requires me to parse 52,005,167 rows in a MySQL table. I am using a series of PHP scripts for each test I would like to run on the data. For example I have...
5
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. ...
3
by: #pragma once | last post by:
That's all we are expecting from programs written in the managed code; Though a MVP advised not to say that, because after JIT compilation the code runs in the native! Funny, isn't? That means...
0
by: Mike G | last post by:
Hi - I support a web application that contains many ASP's. Periodically, the DLLHOST.EXE running this app (we have it in High protection) will start taking alot of time (consistently between 30...
2
by: codesmithsf | last post by:
I'm using PHP 4.2.2 and Apache 2.0.4.0. A script running on a virtual host had an endless loop in it that brought Apache to its knees. I have max_execution_time=90 and memory_limit=32M to...
3
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
2
by: Jonah Bishop | last post by:
What is the appropriate way to start a PHP script in the background? I have a script that manipulates image data, and it takes a long time to run. I'd like to send this process to the background at...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.