summaryrefslogtreecommitdiffstats
path: root/man3/clock.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/clock.311
1 files changed, 5 insertions, 6 deletions
diff --git a/man3/clock.3 b/man3/clock.3
index 588209b..53231aa 100644
--- a/man3/clock.3
+++ b/man3/clock.3
@@ -7,7 +7,7 @@
.\" Modified 14 Jun 2002, Michael Kerrisk <mtk.manpages@gmail.com>
.\" Added notes on differences from other UNIX systems with respect to
.\" waited-for children.
-.TH clock 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH clock 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
clock \- determine processor time
.SH LIBRARY
@@ -16,7 +16,7 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <time.h>
-.PP
+.P
.B clock_t clock(void);
.fi
.SH DESCRIPTION
@@ -45,13 +45,12 @@ T{
.BR clock ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH VERSIONS
XSI requires that
.B CLOCKS_PER_SEC
equals 1000000 independent
of the actual resolution.
-.PP
+.P
On several other implementations,
the value returned by
.BR clock ()
@@ -74,7 +73,7 @@ caller and its children, may be preferable.
C11, POSIX.1-2008.
.SH HISTORY
POSIX.1-2001, C89.
-.PP
+.P
In glibc 2.17 and earlier,
.BR clock ()
was implemented on top of
@@ -90,7 +89,7 @@ The C standard allows for arbitrary values at the start of the program;
subtract the value returned from a call to
.BR clock ()
at the start of the program to get maximum portability.
-.PP
+.P
Note that the time can wrap around.
On a 32-bit system where
.B CLOCKS_PER_SEC