Home > PHP > Function > Misc. > time_nanosleep()

time_nanosleep()

time_nanosleep - Delay for a number of seconds and nanoseconds

Syntax

mixed time_nanosleep (int $seconds, int $nanoseconds)

Arguments

  • seconds - Must be a positive integer.
  • nanoseconds - Must be a positive integer less than 1 billion.

Description

Delays program execution for the given number of seconds and nanoseconds.

Version

PHP 5

Return value

Returns TRUE on success or FALSE on failure.