note 101875 modified in function.microtime by danbrown
| From: | danbrown@php.net | Date: | Sat, 15 Jan 2011 16:03:17 +0000 |
| Subject: | note 101875 modified in function.microtime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175787@lists.php.net to get a copy of this message | ||
As float with more accuracy.
<?php
function getmicrotime($e = 7)
{
list($u, $s) = explode(' ',microtime());
return bcadd($u, $s, $e);
}
echo getmicrotime();
?>
--was--
As float with more accuracy.
function getmicrotime($e = 7)
{
list($u, $s) = explode(' ',microtime());
return bcadd($u, $s, $e);
}
echo getmicrotime();
http://php.net/manual/en/function.microtime.php