diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:18:40 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:18:40 -0700 |
| commit | 517e392abedcdb3ac76fbbf737318b65e855e0c5 (patch) | |
| tree | 79c57ead05559826f10ae934d5db9fb6d23d3863 /core/time | |
| parent | 4d9fdf5bd381c21ae68e08e52a0d98729a390cfe (diff) | |
if -> when
Diffstat (limited to 'core/time')
| -rw-r--r-- | core/time/tsc_linux.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/time/tsc_linux.odin b/core/time/tsc_linux.odin index 7232e0631..5b4c1c2c2 100644 --- a/core/time/tsc_linux.odin +++ b/core/time/tsc_linux.odin @@ -6,7 +6,7 @@ import "base:intrinsics" import linux "core:sys/linux" _get_tsc_frequency :: proc "contextless" () -> (u64, bool) { - if ODIN_ARCH == .arm64 { + when ODIN_ARCH == .arm64 { frequency := u64(intrinsics.read_cycle_counter_frequency()) return frequency, true } else { |