summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2008-12-01 15:27:00 +0000
committerkeramida <keramida@FreeBSD.org>2008-12-01 15:27:00 +0000
commitcbc4e4d96d7b67978d6be592b8f8c3ee70cff337 (patch)
treeb52113e3eedc44a592b0b5be02730d0d2f8b151c /lib
parent3173b6480a67cf7d75b7c0ba0face752bf74d01d (diff)
downloadFreeBSD-src-cbc4e4d96d7b67978d6be592b8f8c3ee70cff337.zip
FreeBSD-src-cbc4e4d96d7b67978d6be592b8f8c3ee70cff337.tar.gz
The times(3) function returns the number of CLK_TCKs since the
startup time of FreeBSD, not since the UNIX Epoch. PR: docs/122359 Submitted by: Viktor &#352;tujber MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/times.313
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/gen/times.3 b/lib/libc/gen/times.3
index 9775387..a77c69f 100644
--- a/lib/libc/gen/times.3
+++ b/lib/libc/gen/times.3
@@ -28,7 +28,7 @@
.\" @(#)times.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd December 1, 2008
.Dt TIMES 3
.Os
.Sh NAME
@@ -52,9 +52,13 @@ The
.Fn times
function returns the value of time in
.Dv CLK_TCK Ns 's
-of a second since
-0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal
-Time.
+of a second since the system startup time.
+The current value of
+.Dv CLK_TCK ,
+the frequency of the statistics clock in ticks per second, may be
+obtained through the
+.Xr sysconf 3
+interface.
.Pp
It also fills in the structure pointed to by
.Fa tp
@@ -131,6 +135,7 @@ and
.Xr getrusage 2 ,
.Xr gettimeofday 2 ,
.Xr wait 2 ,
+.Xr sysconf 3 ,
.Xr clocks 7
.Sh STANDARDS
The
OpenPOWER on IntegriCloud