* © 2018 Aaron Taylor <ataylor at subgeniuskitty dot com>
* See LICENSE.txt file for copyright and license details.
main(int argc
, char ** argv
)
struct timespec ts
= {0,0};
retval
= clock_getres(CLOCK_MONOTONIC
, &ts
);
printf("Clock resolution: %ld s -- %ld ns\n", ts
.tv_sec
, ts
.tv_nsec
);
retval
= clock_gettime(CLOCK_MONOTONIC
, &ts
);
printf("Current clock: %ld s -- %ld ns\n", ts
.tv_sec
, ts
.tv_nsec
);