3 PUBLIC
int sys_times(proc
, ptr
)
4 int proc
; /* proc whose times are needed */
5 clock_t ptr
[5]; /* pointer to time buffer */
7 /* Fetch the accounting info for a proc. */
12 r
= _taskcall(SYSTASK
, SYS_TIMES
, &m
);
13 ptr
[0] = m
.T_USER_TIME
;
14 ptr
[1] = m
.T_SYSTEM_TIME
;
15 ptr
[2] = m
.T_CHILD_UTIME
;
16 ptr
[3] = m
.T_CHILD_STIME
;
17 ptr
[4] = m
.T_BOOT_TICKS
;