Add a high-resolution real-time clock #17

Merged xogium merged 7 commits into LuminaSensum:main from LuminaSensum:RFC_clock on 23 Apr 2023
@Jookia Jookia commented on 23 Apr 2023

This PR updates our custom Clock functionality to use a high-resolution real-time clock that can be seeded from the RTC or over the network using NTP. This clock can then be converted to and from the kernel clock and used to schedule events.

I've done my best to make the code readable but it's a bit too mathematical to be easily understood. The comments should explain what each function does clearly and main.cpp should show an example of using it.

Yeah way too much math involved for my brain here, like you thought. But the comments are good enough that I understand what the code does. I think this is not bad at all then and should be merged.

@xogium xogium referenced the pull request on 23 Apr 2023

Add a high-resolution real-time clock

@xogium xogium merged commit 8174111 into main from RFC_clock on 23 Apr 2023
@xogium xogium closed this pull request on 23 Apr 2023

No milestone
No one assigned
2 participants
@Jookia @xogium