TIMESPEC_GETRES(3) Library Functions Manual TIMESPEC_GETRES(3) NAME timespec_getres -- get clock resolution LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <time.h> int timespec_getres(struct timespec *ts, int base); DESCRIPTION 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. RETURN VALUES The timespec_getres function returns the value of base if successful and zero otherwise. SEE ALSO clock_getres(2), timespec_get(3) STANDARDS The timespec_getres function conforms to ISO/IEC 9899:2024 ("ISO C23"). HISTORY This interface first appeared in FreeBSD 14. AUTHORS The timespec_getres function and this manual page were written by Dag-Erling Smorgrav <des@FreeBSD.org>. FreeBSD 15.1 May 14, 2026 TIMESPEC_GETRES(3)
NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | STANDARDS | HISTORY | AUTHORS
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=timespec_getres&sektion=3&manpath=FreeBSD+15.1-RELEASE+and+Ports.quarterly>