mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
Kernel: Support more clocks in sys$clock_getres()
Support all the available clocks in clock_getres(). Also, fix this function to use the actual ticks per second value, not the constant `_SC_CLK_TCK` (which is always equal to 8) and move the resolution computation logic to TimeManagement.
This commit is contained in:
parent
3c7a0ef1ac
commit
f6eb155167
3 changed files with 12 additions and 10 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
void set_epoch_time(Time);
|
||||
time_t ticks_per_second() const;
|
||||
static Time boot_time();
|
||||
Time clock_resolution() const;
|
||||
|
||||
bool is_system_timer(HardwareTimerBase const&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue