[DeviceDriver] Add clock() to rtc.c .
This commit is contained in:
parent
ce6b0a6efb
commit
47f389732d
|
@ -85,6 +85,11 @@ time_t time(time_t *t)
|
||||||
return time_now;
|
return time_now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RT_WEAK clock_t clock(void)
|
||||||
|
{
|
||||||
|
return rt_tick_get();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set system date(time not modify).
|
* Set system date(time not modify).
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue