.\" Copyright (c) 1990 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)times.3 6.3 (Berkeley) %G%
clock_t times(struct tms *tp);
This interface is obsoleted by getrusage(2) and gettimeofday(3).
function returns the value of time in CLK_TCK's of a second since
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:
The elements of this structure are defined as follows:
The CPU time charged for the execution of user instructions.
The CPU time charged for execution by the system on behalf of
All times are in CLK_TCK's of a second.
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
returns ((clock_t)-1), and sets errno to indicate the error.
may fail and set errno for any of the errors specified for the library
time(1), getrusage(2), gettimeofday(2), wait(2)
conforms to POSIX Std 1003.1-1988.