Lines Matching refs:delay
79 struct timespec delay;
81 delay.tv_sec = TEST_TIME_SLEEP_MS / 1000;
82 delay.tv_nsec = 1000 * 1000 * (TEST_TIME_SLEEP_MS % 1000);
86 int err = nanosleep(&delay, &delay);
100 struct timespec delay;
102 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000);
103 delay.tv_nsec = 1000 * (TEST_TIME_SLEEP_US % (1000 * 1000));
107 int err = nanosleep(&delay, &delay);
140 struct timespec delay;
142 delay.tv_sec = TEST_TIME_SLEEP_US / (1000 * 1000);
143 delay.tv_nsec = 1000 * (TEST_TIME_SLEEP_US % (1000 * 1000));
147 int err = nanosleep(&delay, &delay);