This article mainly introduces the PHPsleep () function and usleep () function. if you need it, refer to the PHP sleep () function.
Definition and usage
The sleep () function delays code execution for several seconds.Syntax sleep (seconds)Seconds
PHP sleep () function, usleep () function, sleepusleep
PHP sleep () function
Definition and usage
The sleep () function delays code execution for several seconds.Syntax sleep (seconds)Seconds required. The pause time in seconds.Return Value
If the
Usleep (PHP3, PHP44.0.0) usleep-description of the number of milliseconds in which the voidusleep (intmicro_seconds) usleep () function is paused. for the number of milliseconds specified by micro_seconds, see sleep (). note: This function cannot
1. PHP Sleep () function
Definition and usage
The sleep () function delays code execution for several seconds.Grammar Sleep (seconds)seconds required. The pause time in seconds.return value
If successful, returns 0, otherwise
PHP Sleep () function
Definitions and usage
The sleep () function delays code execution for several seconds.Grammar Sleep (seconds)seconds required. The pause time in seconds.return value
If successful, returns 0, otherwise returns
The use and difference of sleep () and Usleep () for Linux
[Date: 2013-03-23]
Source: Linux Community Fireroll
[Font: Big Small]
Function Name: SleepHeader file: #include //use with top file in VC#include //The
Function name: sleepHeader file: #include //use with top file in VC#include //The header file used in the GCC compiler differs depending on the GCC versionFunction: Execution suspend specified number of secondsSyntax: unsigned sleep (unsigned
Function Name: Sleep
Header file: #include //use with top files in VC
#include //In the GCC compiler, the header file used differs depending on the version of GCC
Function: Execution suspend specified number of seconds
Grammar: Unsigned sleep
Function Name: Sleep
Header file: #include //use with top files in VC
#include //In the GCC compiler, the header file used differs depending on the version of GCC
Function: Execution suspend specified number of seconds
Grammar: Unsigned sleep
Definition and usage
The Usleep () function delays code execution for several microseconds.
Grammar
Usleep (microseconds)
Parameter description
microseconds required. Pause time in microseconds.
return value
no return value.
Hints and Notes
Note:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.