Pausing the current programΒΆ

nap()

Pause the current program


SYNTAX

nap(millisecs)

Suspends the calling program for at least the specified number of milliseconds, and sometimes for longer due to clock granularity and task switching. On some UNIX systems this function rounds up to the next second. When the time has elapsed, program execution resumes at the statement following the nap() function call.

The function returns the actual number of milliseconds for which the program was suspended.


RELATED TOPICS

sleep