mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-13 12:43:56 +08:00
[DeviceDriver] Add clock() to rtc.c .
This commit is contained in:
@@ -85,6 +85,11 @@ time_t time(time_t *t)
|
||||
return time_now;
|
||||
}
|
||||
|
||||
RT_WEAK clock_t clock(void)
|
||||
{
|
||||
return rt_tick_get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set system date(time not modify).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user