*** empty log message ***
This commit is contained in:
parent
0165662cd9
commit
f0af8d85e7
22
lib/utils/get_upt.c
Normal file
22
lib/utils/get_upt.c
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#include "utils.h"
|
||||||
|
|
||||||
|
/*===========================================================================*
|
||||||
|
* getuptime *
|
||||||
|
*===========================================================================*/
|
||||||
|
PUBLIC int getuptime(ticks)
|
||||||
|
clock_t *ticks; /* uptime in ticks */
|
||||||
|
{
|
||||||
|
message m;
|
||||||
|
int s;
|
||||||
|
|
||||||
|
m.m_type = SYS_TIMES; /* request time information */
|
||||||
|
m.T_PROC_NR = NONE; /* ignore process times */
|
||||||
|
s = _taskcall(SYSTASK, SYS_TIMES, &m);
|
||||||
|
*ticks = m.T_BOOT_TICKS;
|
||||||
|
return(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user