Manual pages › BSD C library (3B)
times(3B)
get process times
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
Also by this name: times(2), System calls
NAME
times - get process times
SYNOPSIS
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 {
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.
SEE ALSO
getrusage(3), wait(3), time(3) time(1) in the User's Refer- ence Manual. wait(2) in the Programmer's Reference Manual
NOTES
times has been superseded by getrusage.