diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/KernelKit/Timer.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kernel/KernelKit/Timer.h b/src/kernel/KernelKit/Timer.h index c55ca3a1..c9c23df8 100644 --- a/src/kernel/KernelKit/Timer.h +++ b/src/kernel/KernelKit/Timer.h @@ -61,16 +61,13 @@ class HardwareTimer final : public ITimer { Int64 fWaitFor{0}; }; -inline UInt64 rtl_microseconds(UInt64 time) { +inline constexpr UInt64 rtl_microseconds(UInt64 time) { if (time < 1) return 0; - - // TODO: nanoseconds maybe? return time / kTimeUnit; } -inline UInt64 rtl_milliseconds(UInt64 time) { +inline constexpr UInt64 rtl_milliseconds(UInt64 time) { if (time < 1) return 0; - return time; } } // namespace Kernel |
