svn: /phpdoc/en/trunk/reference/misc/functions/ time-sleep-until.xml
| From: | Richard Quadling | Date: | Mon, 02 Nov 2009 10:59:27 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/misc/functions/ time-sleep-until.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5269@lists.php.net to get a copy of this message | ||
rquadling Mon, 02 Nov 2009 10:59:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290143
Log:
Fix example to reflect a float time for time-sleep-until. Fix bug#50039
Bug: http://bugs.php.net/50039 (Open) example code at
time_sleep_until-function is IMHO wrong
Changed paths:
U phpdoc/en/trunk/reference/misc/functions/time-sleep-until.xml
Modified: phpdoc/en/trunk/reference/misc/functions/time-sleep-until.xml
===================================================================
--- phpdoc/en/trunk/reference/misc/functions/time-sleep-until.xml 2009-11-02 10:50:32 UTC (rev
290142)
+++ phpdoc/en/trunk/reference/misc/functions/time-sleep-until.xml 2009-11-02 10:59:27 UTC (rev
290143)
@@ -88,7 +88,7 @@
var_dump(time_sleep_until(time()-1));
// may only work on faster computers, will sleep up to 0.2 seconds
-var_dump(time_sleep_until(time()+0.2));
+var_dump(time_sleep_until(microtime(true)+0.2));
?>
]]>