note 33382 added to function.microtime
| From: | jason at burningdesigns dot com | Date: | Tue, 24 Jun 2003 15:12:28 +0000 |
| Subject: | note 33382 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50942@lists.php.net to get a copy of this message | ||
Don't know how to modify these notes, but my previous example ought to have a simple change.
On the rounding line, you should ADD 100. Just in case you're on a boundary value, and the
rounding goes the wrong way and everything goes negative on you:
$reftime = (round(time() / 100) * 100) + 100;
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33382
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33382&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33382&report=yes