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" <[EMAIL PROTECTED]> píše v diskusním príspevku news:[EMAIL PROTECTED] > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php