note 22121 added to function.microtime
| From: | php-general at lists dot php dot net | Date: | Fri, 07 Jun 2002 13:20:51 +0000 |
| Subject: | note 22121 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31559@lists.php.net to get a copy of this message | ||
Note that microseconds are not milliseconds. Most people want stuff displayed as sec.milliseconds
sss.mmmuuupppnnn
where s=seconds, m=millisec, u=microsec, p=picosec, n=nanosec IIRC.
So the function example above should be:
(((float)$usec/1000) + (float)$sec)
I reserve the right to be wrong.
--
http://www.php.net/manual/en/function.microtime.php
http://master.php.net/manage/user-notes.php?action=edit+22121
http://master.php.net/manage/user-notes.php?action=delete+22121
http://master.php.net/manage/user-notes.php?action=reject+22121