aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-11-05 21:30:43 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-11-05 21:30:43 +0000
commit7e1b81799de4be3a21d0e280fcc02242cb3b7620 (patch)
tree5ecd9e7d3a97b7c7f0503d1892a94e64b59c758e
parentd3c64689d8dca6a462b66ddb346aebd0a8a3bbc0 (diff)
downloadsrc-7e1b81799de4be3a21d0e280fcc02242cb3b7620.tar.gz
src-7e1b81799de4be3a21d0e280fcc02242cb3b7620.zip
Add a note explaining why CLOCKS_PER_SEC isn't 1000000.
While I'm here, "of a second" does not belong to CLOCKS_PER_SEC. PR: 30297 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net>
Notes
Notes: svn path=/head/; revision=86107
-rw-r--r--lib/libc/gen/clock.311
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/clock.3 b/lib/libc/gen/clock.3
index 9a17a04ab754..25ec42137e17 100644
--- a/lib/libc/gen/clock.3
+++ b/lib/libc/gen/clock.3
@@ -54,7 +54,7 @@ The
function
determines the amount of processor time used since the invocation of the
calling process, measured in
-.Dv CLOCKS_PER_SEC Ns 's
+.Dv CLOCKS_PER_SEC Ns s
of a second.
.Sh RETURN VALUES
The
@@ -69,3 +69,12 @@ The
.Fn clock
function conforms to
.St -isoC .
+However,
+.St -susv2
+requires
+.Dv CLOCKS_PER_SEC
+to be defined as one million.
+.Fx
+does not conform to this requirement;
+changing the value would introduce binary incompatibility
+and one million is still inadequate on modern processors.