kernel: Keep the old Timer::ticks_ms() API.
All checks were successful
continuous-integration/drone/push Build is passing

Removing this API broke the ATA branch.
This commit is contained in:
apio 2023-06-03 21:02:18 +02:00
parent e10cc2d954
commit 3283991ec6
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,11 @@ namespace Timer
timespecadd(&s_realtime_clock, &s_interval, &s_realtime_clock);
}
usize ticks_ms()
{
return (s_monotonic_clock.tv_sec * 1000) + (s_monotonic_clock.tv_nsec / 1'000'000);
}
struct timespec* monotonic_clock()
{
return &s_monotonic_clock;

View File

@ -16,6 +16,8 @@ namespace Timer
{
void tick();
usize ticks_ms();
struct timespec* monotonic_clock();
struct timespec* realtime_clock();