The times() function returns time-accounting information for the current process and for the terminated child processes of the current process. All times are reported in clock
ticks. The number of clock ticks per second is defined by the variable CLK_TCK, found in the header <limits.h>.
A structure with the following members is returned by times():
|
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.
|