2023-04-23 |
Clock: Add ability to convert from microseconds to kernel time
...
This functionality allows us to ask the kernel to schedule events
based on a high resolution real-time clock.
An example in main waits until the next second.
Jookia
committed
on 23 Apr 2023
|
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.
Jookia
committed
on 23 Apr 2023
|
2023-04-22 |
Clock: Clean up and document the code
Jookia
committed
on 22 Apr 2023
|
Clock: Use microseconds instead of struct timeval
...
timevals are a little annoying to work with compared to just microseconds,
so switch to using them for our clock API.
Jookia
committed
on 22 Apr 2023
|
Clock: Print microseconds in ISO 8601 strings
Jookia
committed
on 22 Apr 2023
|
Clock: Add _now suffix and variants for clock functions
...
Currently the clock code implicitly grabs the current time.
Add variants that let you pass in your own time value, and specify
extra _now functions that use the current time.
Jookia
committed
on 22 Apr 2023
|
2023-04-04 |
main: Setup and sync clock when 3 presses are read
Jookia
committed
on 4 Apr 2023
|
Clock: Add our clock
...
This clock is intended to be used to get a timeval with sub-second
accuracy and convert it back and forth between kernel and real time.
Jookia
committed
on 4 Apr 2023
|