mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Kernel: Add Processor::time_spent_idle()
This commit is contained in:
parent
9958277317
commit
900fac27c6
2 changed files with 7 additions and 0 deletions
|
@ -1323,4 +1323,9 @@ void Processor::assume_context(Thread& thread, FlatPtr flags)
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
u64 Processor::time_spent_idle() const
|
||||
{
|
||||
return m_idle_thread->time_in_user() + m_idle_thread->time_in_kernel();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue