tail head cat sleep
QR code linking to this page

Manual Pages  — TIMESPEC_GETRES

NAME

timespec_getres – get clock resolution

CONTENTS

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)

HISTORY

This interface first appeared in FreeBSD 14 .

AUTHORS

The timespec_getres function and this manual page were written by Dag-Erling Sm/orgrav <Mt des@FreeBSD.org>.

TIMESPEC_GETRES (3) August 21, 2023

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual). ”
— The Unix Haters' handbook