Skip to content

Commit

Permalink
MFC: r185519
Browse files Browse the repository at this point in the history
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 Štujber
Approved by:  re (kib)
  • Loading branch information
gkeramidas committed Dec 6, 2008
1 parent 1eddaf7 commit b5b7c6c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/libc/gen/times.3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -131,6 +135,7 @@ and
.Xr getrusage 2 ,
.Xr gettimeofday 2 ,
.Xr wait 2 ,
.Xr sysconf 3 ,
.Xr clocks 7
.Sh STANDARDS
The
Expand Down

0 comments on commit b5b7c6c

Please sign in to comment.