Re: Logging PHP Execution time to a file?

From: Date: Mon, 14 Jul 2003 15:33:25 +0000
Subject: Re: Logging PHP Execution time to a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155098@lists.php.net to get a copy of this message
I use this: function getmicrotime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec*1000); } // Start script $time=getmicrotime(); ... ... ... // Script finished echo "Page was generated in ".sprintf("%01.7f",((getmicrotime()-$time)/1000))." seconds."; You can see it at http://hydra.emo-cz.net/rivia at the bottom of each page (not in english :o( ) Emo "Lasse Laursen" <laursen@netgroup.dk> píše v diskusním príspevku news:021801c34a19$4d8a8f70$7e01000a@animal... > Hi all, > > We are "debugging" some web applications to try to determine where the > problems with long execution time is. > > Is it possible to log the execution time of each script executed to a > logfile? The PHP processes are run as FastCGI under Zeus. > > Regards > -- > Lasse Laursen · VP, Hosting Technology · NetGroup A/S > St. Kongensgade 40H · DK-1264 Copenhagen K, Denmark > Phone: +45 3370 1526 · Fax: +45 3313 0066 > > - Don't be fooled by cheap finnish imitations - BSD is the One True Code > >

« previous php.general (#155098) next »