Sam Yong
By: a guest | Sep 4th, 2009 | Syntax:
PHP | Size: 0.66 KB | Hits: 129 | Expires: Never
<?php
$time_start = microtime_float();
$test = cool;
echo $test.'<br/>';
$time_end = microtime_float();
$loadedin = (float)($time_end - $time_start);
echo $loadedin.' s<br/>';
$time_start = microtime_float();
$test = "cool";
echo $test.'<br/>';
$time_end = microtime_float();
$loadedin = (float)($time_end - $time_start);
echo $loadedin.' s<br/>';
$time_start = microtime_float();
$test = 'cool';
echo $test.'<br/>';
$time_end = microtime_float();
$loadedin = (float)($time_end - $time_start);
echo $loadedin.' s<br/>';
function microtime_float(){
return ((float)$usec + (float)$sec);
}
?>