diff --git a/reference/misc/functions/time-nanosleep.xml b/reference/misc/functions/time-nanosleep.xml index ebb4be4fae..312b85ded6 100644 --- a/reference/misc/functions/time-nanosleep.xml +++ b/reference/misc/functions/time-nanosleep.xml @@ -1,22 +1,99 @@ - + time_nanosleep - Delay for a number of seconds and nano seconds + Delay for a number of seconds and nanoseconds - Description + &reftitle.description; mixedtime_nanosleep intseconds intnanoseconds + + Delays program execution for the given number of + seconds and nanoseconds. + + + seconds must be a positive integer, and + nanoseconds must be a positive integer less than + 1 billion. + + + + &reftitle.returnvalues; + + Returns &true; on success, &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 + + + + + + + &reftitle.seealso; + + sleep, + usleep, + set_time_limit + + + + &reftitle.examples; + + + <function>time_nanosleep</function> example + + +]]> + + +