don't print SYSTEM stacktrace on exceptions as it's not scheduled any more.
[minix.git] / lib / libsys / getuptime.c
blob4818262240401be1fc7ae9330b9fcc375efc5d6b
1 #include "sysutil.h"
3 /*===========================================================================*
4 * getuptime *
5 *===========================================================================*/
6 PUBLIC int getuptime(ticks)
7 clock_t *ticks; /* uptime in ticks */
9 message m;
10 int s;
12 m.m_type = SYS_TIMES; /* request time information */
13 m.T_ENDPT = NONE; /* ignore process times */
14 s = _kernel_call(SYS_TIMES, &m);
15 *ticks = m.T_BOOT_TICKS;
16 return(s);