mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:38:10 +00:00
Kernel: Add TimeManagement::now_as_timeval()
Hide the implementation of time-of-day computation in TimeManagement.
This commit is contained in:
parent
2dc051c866
commit
2d35810e0a
3 changed files with 8 additions and 2 deletions
|
@ -597,8 +597,7 @@ void Scheduler::timer_tick(const RegisterState& regs)
|
|||
|
||||
++g_uptime;
|
||||
|
||||
g_timeofday.tv_sec = TimeManagement::the().epoch_time();
|
||||
g_timeofday.tv_usec = TimeManagement::the().ticks_this_second() * 1000;
|
||||
g_timeofday = TimeManagement::now_as_timeval();
|
||||
|
||||
if (Process::current->is_profiling()) {
|
||||
SmapDisabler disabler;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue