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.
1 parent 65b1329 commit c271d7210030fc9d83c221d82d9a3345f53ecf1f
@Jookia Jookia authored on 23 Apr 2023
Showing 2 changed files