Ads

Mini Microtime

Microtime, what is microtime. Its almost like a server's version of miliseconds.
Google for a more 'detailed' definition.


CODE
<?php
$time_start 
microtime(true);
$time_end microtime(true);
$time $time_end $time_start;
echo 
"Page generation in $time secondsn";
?>



Just copy and paste that code into your *.php document to display the time it took to generate that page!

Simple enough.
If you have any questions post em in the comments!

Sunday May 27, 2007 - 162 reads