1 #include "sysutil.h" 2 3 /*===========================================================================* 4 * getuptime * 5 *===========================================================================*/ 6 int getticks(ticks) 7 clock_t *ticks; /* monotonic time in ticks */ 8 { 9 message m; 10 int s; 11 12 m.m_type = SYS_TIMES; /* request time information */ 13 m.m_lsys_krn_sys_times.endpt = NONE; /* ignore process times */ 14 s = _kernel_call(SYS_TIMES, &m); 15 *ticks = m.m_krn_lsys_sys_times.boot_ticks; 16 return(s); 17 } 18