Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Martin Milner | > | cacher.php.class | > | test.php | > | Download | ||
|
Download |
<? function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); //begin the caching thing include ("cacher.php.class"); $cacher = new Cacher; $output = $cacher->cache("http://www.YourDomain.com/echo.php?edit=no", 5); echo $output; //end the caching thing $time_end = getmicrotime(); $time = $time_end - $time_start; echo "Did page in $time seconds"; ?> |