RE: [PHP] Script Execution Time
| From: | Ow Mun Heng | Date: | Tue, 29 Jul 2003 10:35:19 +0000 |
| Subject: | RE: [PHP] Script Execution Time | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157289@lists.php.net to get a copy of this message | ||
This is what I use.. simple.. (someone from this list contributed it)
function stopwatch_init()
{
list($usec, $sec) = explode(" ", microtime());
return ( (float)$usec + (float)$sec );
}
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-----Original Message-----
From: Jeff Harris [mailto:jharris@rallycentral.us]
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 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 http://jharris.rallycentral.us/jharris.asc |
gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.