Javascript debugger
Website design
↑
If the specified timestamp is in the past, this
function will generate a E_WARNING
.
<?php
//returns false and generates a warning
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));
?>
All signals will be delivered after the script wakes up.
This function is not implemented on Windows platforms.
sleep() |
usleep() |
time_nanosleep() |