2020301918-os/kern/time.c
2022-10-18 18:23:01 +08:00

22 lines
215 B
C

#include "type.h"
#include "time.h"
static size_t timecounter;
/*
* 时间戳加一
*/
void
timecounter_inc()
{
timecounter++;
}
/*
* 获取内核当前的时间戳
*/
size_t
clock()
{
return timecounter;
}