[PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Lasse Laursen
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

Re: [PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Marek Kilimajer
I use this function: function echo_pt($add='') { static $pt = 0; if($pt==0) { $pt = miro_time(); return; } $time_start = explode(' ', $pt); $time_end = explode(' ', microtime()); $parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] +

Re: [PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Jeff Harris
On Jul 14, 2003, Marek Kilimajer claimed that: |I use this function: |function echo_pt($add='') { | static $pt = 0; | if($pt==0) { | $pt = miro_time(); | return; | } | $time_start = explode(' ', $pt); | $time_end = explode(' ', microtime()); | $parse_time =