Add this at the top most point of the page, after php tag…
1 2 3 4 5 6 7 8 |
<?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; ?> |
and at the end of the page
1 2 3 4 5 6 7 8 9 10 |
<?php $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 4); echo 'Page generated in '.$total_time.' seconds.'; ?> |