5 main(int argc, char **argv)
11 r = clock_getres(CLOCK_REALTIME, &ts);
13 perror("clock_getres(CLOCK_REALTIME, ...)");
17 printf("clock_getres(CLOCK_REALTIME, ...) => %11.9f\n",
18 (double) ts.tv_sec + ts.tv_nsec * 1e-9);
21 r = clock_getres(CLOCK_MONOTONIC, &ts);
23 perror("clock_getres(CLOCK_MONOTONIC, ...");
27 printf("clock_getres(CLOCK_MONOTONIC, ...) => %11.9f\n",
28 (double) ts.tv_sec + ts.tv_nsec * 1e-9);
31 return ok == true ? 0 : 1;