Kernel: Remove get_unix_timestamp from SystemTimer

Kernel now uses the percise real_time() and time_since_boot()
This commit is contained in:
Bananymous
2023-08-09 08:57:50 +03:00
parent 6fcb191ca0
commit 96c0ad0d3d
6 changed files with 26 additions and 33 deletions

View File

@@ -74,12 +74,7 @@ namespace Kernel
dwarnln("sleep woke {} ms too soon", wake_time - ms_since_boot());
}
uint64_t SystemTimer::get_unix_timestamp() const
{
return m_boot_time + ms_since_boot() / 1000;
}
timespec SystemTimer::get_real_time() const
timespec SystemTimer::real_time() const
{
auto result = time_since_boot();
result.tv_sec += m_boot_time;