kernel: Keep the old Timer::ticks_ms() API.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Removing this API broke the ATA branch.
This commit is contained in:
parent
e10cc2d954
commit
3283991ec6
@ -62,6 +62,11 @@ namespace Timer
|
|||||||
timespecadd(&s_realtime_clock, &s_interval, &s_realtime_clock);
|
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()
|
struct timespec* monotonic_clock()
|
||||||
{
|
{
|
||||||
return &s_monotonic_clock;
|
return &s_monotonic_clock;
|
||||||
|
@ -16,6 +16,8 @@ namespace Timer
|
|||||||
{
|
{
|
||||||
void tick();
|
void tick();
|
||||||
|
|
||||||
|
usize ticks_ms();
|
||||||
|
|
||||||
struct timespec* monotonic_clock();
|
struct timespec* monotonic_clock();
|
||||||
|
|
||||||
struct timespec* realtime_clock();
|
struct timespec* realtime_clock();
|
||||||
|
Loading…
Reference in New Issue
Block a user