times(3BSD) (BSD System Compatibility) times(3BSD)
NAME
times - (BSD) get process times
SYNOPSIS
/usr/ucb/cc [flag . . . ] file . . .
#include <sys/types.h>
#include <sys/times.h>
int times(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 filled in by times:
struct tms {
time_t tms_utime; /* user time */
time_t tms_stime; /* system time */
time_t tms_cutime; /* user time, children */
time_t tms_cstime; /* system time, children */
};
The children's times are the sum of the children's process
times and their children's times.
Return Values
times returns 0 for success and -1 for failure.
REFERENCES
getrusage(3BSD), time(1), time(2), wait(2), wait(3BSD)
NOTICES
times has been superseded by getrusage.
Copyright 1994 Novell, Inc. Page 1