.TH CLOCK_GETRES 2 2021-03-22 "" "Linux Programmer's Manual"
.SH NAME
clock_getres, clock_gettime, clock_settime \- clock and time functions
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " -lc ),
+since glibc 2.17
+.PP
+Before glibc 2.17,
+Real-time library
+.RI ( librt ", " -lrt )
.SH SYNOPSIS
.nf
.B #include <time.h>
.BI "int clock_settime(clockid_t " clockid ", const struct timespec *" tp );
.fi
.PP
-Link with \fI\-lrt\fP (only for glibc versions before 2.17).
-.PP
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):