ID:               35355
 Updated by:       [EMAIL PROTECTED]
 Reported By:      CaptSushekECF at aol dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Apache
 PHP Version:      5.0.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2005-11-23 21:50:54] CaptSushekECF at aol dot com

Description:
------------
When running sleep(), I noticed it does not always pause the script for
the exact amount of time.  Although the difference is no doubt
neglectible, it is still noteable.

Reproduce code:
---------------
<?php $st = array_sum (explode (' ', microtime ()));

sleep (1);

echo round ((array_sum (explode (' ',microtime ())) - $st), 7); ?>

Expected result:
----------------
I expect to see values ranging around 1.0000001 to 1.01 (depending on
lag).

Actual result:
--------------
It returned the following: (including server lag)

0.9998388
0.9999161
1.001672


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35355&edit=1

Reply via email to