Kernel/LibC: add clock_gettime() for CLOCK_MONOTONIC

This gets the number of milliseconds since boot
This commit is contained in:
Bananymous
2023-07-06 00:38:29 +03:00
parent 4086d7c3be
commit 1fb305fa45
7 changed files with 40 additions and 0 deletions

View File

@@ -99,6 +99,8 @@ namespace Kernel
BAN::ErrorOr<long> sys_termid(char*) const;
BAN::ErrorOr<long> sys_clock_gettime(clockid_t, timespec*) const;
TTY& tty() { ASSERT(m_tty); return *m_tty; }
static Process& current() { return Thread::current().process(); }