Function rc_nanosleep#
Defined in File time.h
Function Documentation#
-
void rc_nanosleep(uint64_t ns)#
Sleep in nanoseconds.
A wrapper for the normal UNIX nanosleep function which takes a number of nanoseconds instead of a timeval struct. This also handles restarting nanosleep with the remaining time in the event that nanosleep is interrupted by a signal. There is no upper limit on the time requested.
- Parameters:
ns – [in] nanoseconds to sleep