Name

time_nanosleep

Synopsis

bool time_nanosleep(int seconds, int nanoseconds)

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:

seconds

Number of seconds remaining

nanoseconds

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.