timespec_getres
—
get clock resolution
Standard C Library (libc, -lc)
#include
<time.h>
int
timespec_getres
(struct
timespec *ts, int
base);
If ts is non-null and
base refers to a supported time base as described in
timespec_get(3),
the timespec_getres
function fills in the structure
pointed to by ts to reflect the resolution of that
time base.
The timespec_getres
function returns the
value of base if successful and zero otherwise.
This interface first appeared in FreeBSD
14.
The timespec_getres
function and this
manual page were written by Dag-Erling
Smørgrav
<des@FreeBSD.org>.