.SH SYNOPSIS
.B #include <time.h>
.PP
-.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
+.BI "int clock_getres(clockid_t " clockid ", struct timespec *" res );
.PP
-.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
+.BI "int clock_gettime(clockid_t " clockid ", struct timespec *" tp );
.PP
-.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
+.BI "int clock_settime(clockid_t " clockid ", const struct timespec *" tp );
.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
.PP
The function
.BR clock_getres ()
finds the resolution (precision) of the specified clock
-.IR clk_id ,
+.IR clockid ,
and, if
.I res
is non-NULL, stores it in the \fIstruct timespec\fP pointed to by
and
.BR clock_settime ()
retrieve and set the time of the specified clock
-.IR clk_id .
+.IR clockid .
.PP
The
.I res
.in
.PP
The
-.I clk_id
+.I clockid
argument is the identifier of the particular clock on which to act.
A clock may be system-wide and hence visible for all processes, or
per-process if it measures time only within a single process.
.TP
.B EINVAL
The
-.I clk_id
+.I clockid
specified is not supported on this system.
.\" Linux also gives this error on attempts to set CLOCK_PROCESS_CPUTIME_ID
.\" and CLOCK_THREAD_CPUTIME_ID, when probably the proper error should be
.TP
.B EINVAL
The
-.I clk_id
+.I clockid
specified in a call to
.BR clock_settime ()
is not a settable clock.
A call to
.BR clock_settime ()
with a
-.I clk_id
+.I clockid
of
.B CLOCK_REALTIME
attempted to set the time to a value less than