Unix |
Unix v6 |
|
![]() |
times(2) |
![]() |
times get process times (times = 43.; not in assembler)
sys times; buffer times(buffer)
struct tbuffer *buffer; returns time-accounting
information for the current process and for the terminated
child processes of the current process. All times are in
1/60 seconds. After the call, the buffer will appear as
follows:
struct tbuffer {
int |
procusertime; |
||
int |
procsystemtime; |
||
int |
childusertime[2]; |
||
int |
childsystemtime[2]; |
};
The children times are the sum of the children’s
process times and their children’s times. time (I)
The process times should be 32 bits as well.
![]() |
times(2) | ![]() |