⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

read_hw_timestamp

Function read_hw_timestamp 

Source
pub fn read_hw_timestamp() -> u64
Expand description

Read the hardware timestamp counter directly.

Unlike get_ticks, which returns a software-maintained counter incremented on each timer interrupt, this reads the raw hardware cycle/time counter for high-resolution timing.