3 /*===========================================================================*
5 *===========================================================================*/
6 int getuptime(ticks
, realtime
, boottime
)
7 clock_t *ticks
; /* monotonic time in ticks */
8 clock_t *realtime
; /* wall time in ticks */
14 m
.m_type
= SYS_TIMES
; /* request time information */
15 m
.m_lsys_krn_sys_times
.endpt
= NONE
; /* ignore process times */
16 s
= _kernel_call(SYS_TIMES
, &m
);
17 *ticks
= m
.m_krn_lsys_sys_times
.boot_ticks
;
18 *realtime
= m
.m_krn_lsys_sys_times
.real_ticks
;
19 *boottime
= m
.m_krn_lsys_sys_times
.boot_time
;