non_standard:usleep

C++ Reference

usleep

usleep is a C++ function that suspends the thread execution for integer value microseconds.

It accepts only integer values.

If some one wants to suspend the thread execution for something like 4.536 seconds, he set usleep as follows:

usleep(4536000); // (in microseconds)

He can alternatively use the combination of sleep and usleep as follows:

sleep(4);       // (in seconds)
usleep(536000); // (in microseconds)