man 3 usleep
USLEEP(3) Linux Programmer’s Manual USLEEP(3)
NAME
usleep - suspend execution for microsecond intervals
SYNOPSIS
/* BSD version */
#include <unistd.h>
void usleep(unsigned long usec);
/* SUSv2 version */
#define _XOPEN_SOURCE 500
#include <unistd.h>
int usleep(useconds_t usec);
DESCRIPTION
The usleep() function suspends execution of the calling process for (at
least) usec microseconds. The sleep may be lengthened slightly by any
system activity or by the time spent processing the call or by the
granularity of system timers.
RETURN VALUE
None (BSD). Or: 0 on success, -1 on error (SUSv2).
ERRORS
EINTR Interrupted by a signal.
EINVAL usec is not smaller than 1000000. (On systems where that is
considered an error.)
: