- Impact
- 324
PHP:
<?php
// Insert at the very top of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$start = $time;
?>
<?php
// Place at the very bottom of your page
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$finish = $time;
$totaltime = ($finish - $start);
printf ("Page generated in %f .", $totaltime);
?>
Last edited: