times(3C) (BSD Compatibility Package) times(3C)
NAME
times - get process times
SYNOPSIS
/usr/ucb/cc [flag ...] file ... -lucb
#include <sys/types.h>
#include <sys/times.h>
times(buffer)
struct tms *buffer;
DESCRIPTION
times returns time-accounting information for the current process and
for the terminated child processes of the current process. All times
are in 1/HZ seconds, where HZ is 60.
This is the structure returned by times:
struct tms {
timet tmsutime; /* user time */
timet tmsstime; /* system time */
timet tmscutime; /* user time, children */
timet tmscstime; /* system time, children */
};
The children's times are the sum of the children's process times and
their children's times.
NOTES
times has been superseded by getrusage(2).
SEE ALSO
time(1), getrusage(2), time(2), wait(2), wait3(3).
Page 1 Reliant UNIX 5.44 Printed 11/98