Name
time_nanosleep
Synopsis
bool time_nanosleep(intseconds
, intnanoseconds
)
Pauses execution of the current script for
seconds
seconds and
nanoseconds
nanoseconds. Returns true
on success and false
on a failure; if the delay was
interrupted by a signal, an associative array containing the following
values is returned instead:
| Number of seconds remaining |
| Number of nanoseconds remaining |
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.