mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
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:
parent
395e19a49d
commit
9ce3a29709
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue