#include <time.h> int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp); |
This function suspends execution of the currently running realtime thread until the time interval specified by rqtp is elapsed, or until the function is woken up by a signal. If the TIMER_ABSTIME flag is set in flags, the time interval specified by rqtp is absolute; otherwise, it is relative to the current time. The timeout is experessed with respect to the clock specified by the parameter clock_id.