Clock: Combine clocks to create a high resolution real-time clock
The kernel clock is high resolution but only tracks uptime. The RTC clock is low resolution but tracks real time. The NTP clock is high resolution but costly to access. We can combine the kernel clock with a real-time clock of any type by sporadically calculating the time the system was booted at then adding the kernel's uptime to it whenever we need a new clock. |
---|
|
include/Clock.h |
---|
src/Clock.cpp |
---|