Lines Matching refs:clockid
50 char *clockstring(int clockid) in clockstring() argument
52 switch (clockid) { in clockstring()
101 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument
106 if (clock_gettime(clockid, &now)) in nanosleep_test()
110 if (clock_nanosleep(clockid, TIMER_ABSTIME, &target, NULL)) in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
118 clock_gettime(clockid, &now); in nanosleep_test()
123 clock_nanosleep(clockid, 0, &rel, NULL); in nanosleep_test()
124 clock_gettime(clockid, &now); in nanosleep_test()
134 int clockid, ret; in main() local
136 for (clockid = CLOCK_REALTIME; clockid < NR_CLOCKIDS; clockid++) { in main()
139 if (clockid == CLOCK_PROCESS_CPUTIME_ID || in main()
140 clockid == CLOCK_THREAD_CPUTIME_ID || in main()
141 clockid == CLOCK_HWSPECIFIC) in main()
144 printf("Nanosleep %-31s ", clockstring(clockid)); in main()
149 ret = nanosleep_test(clockid, length); in main()