mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
Kernel+LibC: Implement clock_gettime() and clock_nanosleep()
Only the CLOCK_MONOTONIC clock is supported at the moment, and it only has millisecond precision. :^)
This commit is contained in:
parent
73b2cb9ed8
commit
cc68654a44
9 changed files with 127 additions and 7 deletions
|
@ -220,6 +220,7 @@ public:
|
|||
VirtualAddress thread_specific_data() const { return m_thread_specific_data; }
|
||||
|
||||
u64 sleep(u32 ticks);
|
||||
u64 sleep_until(u64 wakeup_time);
|
||||
|
||||
enum class BlockResult {
|
||||
WokeNormally,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue