Unix |
Unix v7 |
|
![]() |
times(2) |
![]() |
times − get process times
times(buffer)
struct tbuffer *buffer;
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=60 in North America.
After the call, the buffer will appear as follows:
struct tbuffer {
long |
proc_user_time; | ||
long |
proc_system_time; | ||
long |
child_user_time; | ||
long |
child_system_time; |
};
The children times are the sum of the children’s process times and their children’s times.
time(1), time(2)
(times = 43.)
sys times; buffer
![]() |
times(2) | ![]() |