From: kjarli at gmail dot com Operating system: windows xp media center PHP version: 5.2.5 PHP Bug Type: Unknown/Other Function Bug description: custom timer class gives incorrect time with sleep(1);
Description: ------------ When I tried to benchmark my type casting tests, I found out I was getting very, very low numbers. So I added sleep(1); The result was nothing I expected. Reproduce code: --------------- All needed provided in: http://pastebin.org/32109 Expected result: ---------------- To see a time of about 1.00[0-9]* seconds. Actual result: -------------- about 90% of the time, the number of seconds is 0.999[0-9]* Very wierd since I used sleep(1); -- Edit bug report at http://bugs.php.net/?id=44839&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44839&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44839&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44839&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44839&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44839&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44839&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44839&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44839&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44839&r=support Expected behavior: http://bugs.php.net/fix.php?id=44839&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44839&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44839&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44839&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44839&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44839&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44839&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44839&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44839&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44839&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44839&r=mysqlcfg