NOTE: If you're doing this in joomla use the index file, but replace the $script_start and $script_end variable $_POST['script_start'] and $_POST['script_end']
function get_current_microtime() { list($utime, $time) = explode(" ", microtime()); return ((float)$utime + (float)$time); }
$script_start = get_current_microtime();
//your script goes here
$script_end = get_current_microtime(); echo "Script executed in ".bcsub($script_end, $script_start, 4)." seconds.";
By PHPin24 @ 2009-07-09 18:27:24
|