Query: sleep
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SLEEP(3) 1 SLEEP(3) sleep - Delay executionSYNOPSISint sleep (int $seconds)DESCRIPTIONDelays the program execution for the given number of $seconds.PARAMETERSo $seconds - Halt time in seconds.RETURN VALUESReturns zero on success, or FALSE on error. If the call was interrupted by a signal, sleep(3) returns a non-zero value. On Windows, this value will always be 192 (the value of the WAIT_IO_COMPLETION constant within the Windows API). On other platforms, the return value will be the number of seconds left to sleep.ERRORS/EXCEPTIONS If the specified number of $seconds is negative, this function will generate a E_WARNING.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.4 | | | | | | | Before PHP 5.3.4, on Windows, sleep(3) always | | | returns NULL when sleep has occurred, regardless | | | of whether the sleep was interrupted or not. | | | | +--------+---------------------------------------------------+EXAMPLESExample #1 sleep(3) example <?php // current time echo date('h:i:s') . " "; // sleep for 10 seconds sleep(10); // wake up ! echo date('h:i:s') . " "; ?> This example will output (after 10 seconds) 05:31:23 05:31:33SEE ALSOusleep(3), time_nanosleep(3), time_sleep_until(3), set_time_limit(3). PHP Documentation Group SLEEP(3)
Related Man Pages |
---|
sleep(1) - freebsd |
sleep(1) - osx |
dtk_nanosleep(3) - debian |
sleep(1) - netbsd |
sleep(3ucb) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
RDTSC use in C: |
Floating point argument for sleep command in Unix |
How to sleep and wake a thread??? |
Sleep Until Query |
parse lines |