diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-11-05 21:30:43 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-11-05 21:30:43 +0000 |
commit | c54bcb11095795c80eddde895dcd9b0e52f07206 (patch) | |
tree | 5ecd9e7d3a97b7c7f0503d1892a94e64b59c758e /lib/libc | |
parent | b66cb8c56d9dc3c2d1655ec710d7585b680d49ff (diff) | |
download | FreeBSD-src-c54bcb11095795c80eddde895dcd9b0e52f07206.zip FreeBSD-src-c54bcb11095795c80eddde895dcd9b0e52f07206.tar.gz |
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>
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/clock.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/clock.3 b/lib/libc/gen/clock.3 index 9a17a04..25ec421 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. |