Kerne: SystemTimer can now output the current real time
This commit is contained in:
@@ -79,4 +79,11 @@ namespace Kernel
|
||||
return m_boot_time + ms_since_boot() / 1000;
|
||||
}
|
||||
|
||||
timespec SystemTimer::get_real_time() const
|
||||
{
|
||||
auto result = time_since_boot();
|
||||
result.tv_sec += m_boot_time;
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user