Skip to content

Commit 6d69fb1

Browse files
committed
fix: cputicks on x86_64
1 parent dc2a8c3 commit 6d69fb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ pub fn ticks() -> u64 {
4343
pub fn ticks() -> u64 {
4444
// SAFETY: `_rdtsc` emits the CPU counter read instruction and has no Rust memory safety
4545
// preconditions.
46-
unsafe { _rdtsc() }
46+
unsafe { core::arch::x86_64::_rdtsc() }
4747
}

0 commit comments

Comments
 (0)