summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/clock.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/clock.3')
-rw-r--r--lib/libc/gen/clock.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/clock.3 b/lib/libc/gen/clock.3
index f70184e..0e5ad06 100644
--- a/lib/libc/gen/clock.3
+++ b/lib/libc/gen/clock.3
@@ -42,7 +42,7 @@
.Nm clock
.Nd determine processor time used
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.Fd #include <time.h>
.Ft clock_t
.Fn clock void
.Sh DESCRIPTION
@@ -51,14 +51,16 @@ The
function
determines the amount of processor time used since the invocation of the
calling process, measured in
-.Dv CLK_TCK Ns s.
+.Dv CLOCKS_PER_SEC Ns 's
+of a second.
.Sh RETURN VALUES
The
.Fn clock
function returns the amount of time used unless an error occurs, in which
case the return value is \-1.
.Sh SEE ALSO
-.Xr getrusage 2
+.Xr getrusage 2 ,
+.Xr clocks 7
.Sh STANDARDS
The
.Fn clock
OpenPOWER on IntegriCloud