Get the timer resolution for a clock
int hrtimer_get_res(const clockid_t which_clock, struct timespec * tp);
which_clock
which clock to query
tp
pointer to timespec variable to store the resolution
Store the resolution of the clock selected by which_clock in the variable pointed to by tp.