clock_getres(2) DG/UX 5.4 Rel. 2.01 clock_getres(2)
NAME
clock_getres - get the resolution of the system clock
SYNOPSIS
#include <time.h>
int clockgetres (clockid, *res)
clockt clockid;
long *res;
DESCRIPTION
Use clockgetres(2) to get the resolution res (interval in
nanoseconds between clock resets) of the system-wide realtime clock.
The value of clockid must be CLOCK_REALTIME.
Note
* This routine is based on POSIX realtime extension document P1003.4
draft 12. It is therefore subject to change.
* Compilation of a source file using this routine requires that
feature macro _POSIX4_DRAFT_SOURCE be defined. This feature macro
is not enabled by any other feature macro, nor does it enable any
other feature macro.
* The compiled routine must be linked to library librte.a.
RETURN VALUE
If successful, clockgetres returns 0. If unsuccessful, the routine
returns -1 and sets ERRNO to:
EINVAL The value of clockid is not CLOCK_REALTIME.
SEE ALSO
timercreate(2), timerdelete(2), timersettime(2), timergettime(2),
timergetoverrun(2).
Licensed material--property of copyright holder(s) 1