Php Parsing Script

Published On: 2011-09-17

Category: Jargon Jabberwocky

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;
?>