Fixed error in microtime example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43783 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jesus M. Castagnetto 2001-03-18 01:37:02 +00:00
parent 395e19a49d
commit 9ce3a29709

View file

@ -637,7 +637,7 @@ echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
<programlisting role="php">
function getmicrotime(){
list($sec, $usec) = explode(" ",microtime());
return ($sec + $usec);
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();