Menu Riverview Church

TIME_NANOSLEEP

Delay for a number of seconds and nanoseconds

SYNTAX

time_nanosleep ( int $seconds , int $nanoseconds ) : mixed

PARAMETERS

seconds

Must be a non-negative integer.

nanoseconds

Must be a non-negative integer less than 1 billion.

Note: On Windows, the system may sleep longer that the given number of nanoseconds, depending on the hardware.

RETURN

Returns TRUE on success or FALSE on failure.

If the delay was interrupted by a signal, an associative array will be returned with the components:

seconds number of seconds remaining in the delay
nanoseconds number of nanoseconds remaining in the delay

EXAMPLES

slept 0.5 seconds
slept 0.5 seconds
slept 0.5 seconds

PHP