From edd777d73cee024fd93d4a2041041112ef97ad05 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Tue, 10 Aug 2004 18:45:07 +0000 Subject: [PATCH] - Document time_nanosleep(), with example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165949 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/time-nanosleep.xml | 85 ++++++++++++++++++++- 1 file changed, 81 insertions(+), 4 deletions(-) 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 + + +]]> + + +