USLEEP(3) Linux Programmer's Manual USLEEP(3)
NAME
usleep - suspend execution for microsecond intervals
SYNOPSIS
#include <unistd.h>
int usleep(useconds_t usec);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
NOTES
The type useconds_tuseconds_t is an unsigned integer type capable of holding integers in the ran ge
[0,1000000]. Programs will be more portable if they never mention this type explicitly.
Use
#include <unistd.h>
...
unsigned int usecs;
...
usleep(usecs);
NAME
usleep - suspend execution for microsecond intervals
SYNOPSIS
#include <unistd.h>
int usleep(useconds_t usec);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
NOTES
The type useconds_tuseconds_t is an unsigned integer type capable of holding integers in the ran ge
[0,1000000]. Programs will be more portable if they never mention this type explicitly.
Use
#include <unistd.h>
...
unsigned int usecs;
...
usleep(usecs);
SLEEP(1) User Commands SLEEP(1)
NAME
sleep - delay for a specified amount of time
SYNOPSIS
sleep NUMBER[SUFFIX]...
sleep OPTION
DESCRIPTION
Pause for NUMBER seconds. SUFFIX may be `s' for seconds (the default), `m' for minutes,
`h' for hours or `d' for days. Unlike most implementations that require NUMBER be an
integer, here NUMBER may be an arbitrary floating point number. Given two or more argu‐
ments, pause for the amount of time specified by the sum of their values.