Suspends execution for an interval.
#include <unistd.h> int usleep (unsigned int mseconds);
There is one real-time interval timer for each process. The usleep function does not interfere with a previous setting of this timer. If the process set this timer before calling usleep and if the time specified by mseconds equals or exceeds the interval timer's prior setting, then the process is awakened shortly before the timer was set to expire.
0 | Indicates success. |
-1 | Indicates an error occurred; errno is set to EINVAL. |