GO ILLINI
06-21-2007, 01:14 AM
<?php
$starttime = time()+microtime();
function PtimerStop() {
global $starttime;
$endtime = time()+microtime();
$totaltime = round($endtime - $starttime,4);
echo 'This page took ' . $totaltime . ' to load.';
}
?>
Some random page stuff and some other php and some
database calls and some other stuff that takes forever
<?php
PtimerStop();
?>Pretty standard... But helpful none-the-less.
-Adam
$starttime = time()+microtime();
function PtimerStop() {
global $starttime;
$endtime = time()+microtime();
$totaltime = round($endtime - $starttime,4);
echo 'This page took ' . $totaltime . ' to load.';
}
?>
Some random page stuff and some other php and some
database calls and some other stuff that takes forever
<?php
PtimerStop();
?>Pretty standard... But helpful none-the-less.
-Adam