Message-
From: Jeff Harris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 9:17 AM
To: Petya A Shushpanov
Cc: Radek Zajkowski; PHP GENERAL
Subject: Re: [PHP] Script Execution Time
On Jul 29, 2003, Petya A Shushpanov claimed that:
|?
|class jTimer {
|[snip]
|
|$timer-stop();
|echo
Could someone pass on a snippet, a function or a technique for measuring
script times. It appears the host I am with is having some PHP engine
performance problems and I need to send them the figures.
Thanks in advance
R
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Radek Zajkowski wrote:
Could someone pass on a snippet, a function or a technique for measuring
script times. It appears the host I am with is having some PHP engine
performance problems and I need to send them the figures.
Check out the user contributed notes on php.net for microtime().
* Thus wrote Radek Zajkowski ([EMAIL PROTECTED]):
Could someone pass on a snippet, a function or a technique for measuring
script times. It appears the host I am with is having some PHP engine
performance problems and I need to send them the figures.
So I'm suppose to take my timeout and
Hi Radek,
This has been posted before...around once every 2 weeks I guess :-)...check
the archive or you will/may get flamed.
Cheers,
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-
From: Radek Zajkowski [EMAIL PROTECTED]
To: PHP GENERAL [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:09 AM
Subject: [PHP] Script Execution Time
Could someone pass on a snippet, a function or a technique for measuring
script times. It appears the host I am with is having some PHP
Petya A Shushpanov mailto:[EMAIL PROTECTED]
on Monday, July 28, 2003 3:41 PM said:
?
class jTimer {
[snip]
}
$timer = new jTimer;
$timer-start();
#your code here
$timer-stop();
echo round($timer-elapsed(),5);
You could one up this class by creating another method that
Tnx. I`ve it fixed jet.
- Original Message -
From: Chris W. Parker [EMAIL PROTECTED]
To: Petya A Shushpanov [EMAIL PROTECTED]; Radek Zajkowski
[EMAIL PROTECTED]; PHP GENERAL [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 3:50 AM
Subject: RE: [PHP] Script Execution Time
Petya
On Jul 29, 2003, Petya A Shushpanov claimed that:
|?
|class jTimer {
|[snip]
|
|$timer-stop();
|echo round($timer-elapsed(),5);
|?
|
|--
|Petya A Shushpanov
|
Or, you could use http://pear.php.net/package-info.php?package=Benchmark
--
Registered Linux user #304026.
lynx -source
I have a php script that returns about 1.5Mb of data in text format to the
user. I am wondering if there is a way for php to display the time it took
to execute the script at the end of the file.
Put this at the top of the script:
code
function getmicrotime(){
list($usec, $sec) =
10 matches
Mail list logo