I was looking for a way to see how fast the parse time of my pages was. Came up with this code. Please note this only works for > php5.
Put this at the beginning of your pages:
<?php $starttime = microtime(1); ?>
Put this at the end of your pages:
<?php
$endtime = microtime(1);
$totaltime = $endtime - $starttime;
?>
<!-- This page was generated in <?php echo $totaltime; ?> seconds. -->
