.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)times.3 6.4 (Berkeley) %G%
.Fd #include <sys/times.h>
.Fn times "struct tms *tp"
This interface is obsoleted by getrusage(2)
function returns the value of time in
0 hours, 0 minutes, 0 seconds, January 1, 1970, Coordinated Universal
It also fills in the structure pointed to by
with time-accounting information.
structure is defined as follows:
.Bd -literal -offset indent
The elements of this structure are defined as follows:
.Bl -tag -width tms_cutime
time charged for the execution of user instructions.
time charged for execution by the system on behalf of
The times of a terminated child process are included in the
elements of the parent when one of the
functions returns the process ID of the terminated child to the parent.
and sets errno to indicate the error.
may fail and set the global variable
for any of the errors specified for the library