mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel: Make TimeManagement use AK::Time internally
I don't dare touch the multi-threading logic and locking mechanism, so it stays timespec for now. However, this could and should be changed to AK::Time, and I bet it will simplify the "increment_time_since_boot()" code.
This commit is contained in:
parent
91c72faa3c
commit
c040e64b7d
8 changed files with 39 additions and 38 deletions
|
@ -383,7 +383,7 @@ int Process::alloc_fd(int first_candidate_fd)
|
|||
|
||||
timeval kgettimeofday()
|
||||
{
|
||||
return TimeManagement::now_as_timeval();
|
||||
return TimeManagement::now().to_timeval();
|
||||
}
|
||||
|
||||
void kgettimeofday(timeval& tv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue