1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00

Kernel: Do timekeeping manually instead of asking the RTC all the time.

This introduces a tiny amount of timer drift which I will have to fix
somehow eventually, but it's a huge improvement in timing consistency
as we no longer suddenly jump from e.g 10:45:49.123 to 10:45:50.000.
This commit is contained in:
Andreas Kling 2019-03-25 02:06:57 +01:00
parent 20f7d7ec67
commit ab11f42094
5 changed files with 34 additions and 21 deletions

View file

@ -7,6 +7,7 @@
namespace PIT {
void initialize();
dword ticks_since_boot();
dword ticks_this_second();
dword seconds_since_boot();
}