--TEST-- time_sleep_until() function - basic test for time_sleep_until() --SKIPIF-- --CREDITS-- Manuel Baldassarri mb@ideato.it Michele Orselli mo@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --FILE-- = (int)$time ? $tmp : $tmp + .05; } // Add some tolerance for early wake on macos. Reason unknown. if ($now + 0.002 >= $sleepUntil) { echo "Success\n"; } else { echo "Sleep until (before truncation): ", $time, "\n"; echo "Sleep until: ", $sleepUntil, "\n"; echo "Now: ", $now, "\n"; } ?> --EXPECT-- bool(true) Success