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:[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 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php