Lines Matching refs:res
8 * Test that clock_getres() returns the resolution of clock_id in res.
19 struct timespec res;
21 /* Initialize res to a number much larger than the resolution
24 res.tv_sec = LARGENUM;
25 res.tv_nsec = LARGENUM;
26 if (clock_getres(CLOCK_REALTIME, &res) == 0) {
27 if (res.tv_sec != LARGENUM) { //assume initialized
30 (int) res.tv_sec,
31 (int) res.tv_nsec);
36 printf("clock_getres() success, but res not filled\n");