unistd
#include <posix/unistd.h>
Defines the APIs related to system sleep
Header File
Functions
-
unsigned sleep(unsigned seconds)
Suspend execution for an interval of time.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/sleep.html
Note
Return value of a positive number is not yet supported.
- Parameters
seconds – [in] The number of seconds to suspend execution.
- Return values
0 – - Upon successful completion.
-
int usleep(useconds_t usec)
Suspend execution for microsecond intervals.
This is a useful, non-POSIX function.
- Parameters
usec – [in] The number of microseconds to suspend execution.
- Return values
0 – - Upon successful completion.