Kernel: Add function to retrieve boot time as timespec

This commit is contained in:
2023-08-04 15:44:32 +03:00
parent 1f8a5f0ce5
commit ca5a097ef5
7 changed files with 55 additions and 6 deletions

View File

@@ -59,6 +59,11 @@ namespace Kernel
return m_timer->ms_since_boot();
}
timespec TimerHandler::time_since_boot() const
{
return m_timer->time_since_boot();
}
void TimerHandler::sleep(uint64_t ms) const
{
if (ms == 0)