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

read_timestamp

Function read_timestamp 

Source
pub fn read_timestamp() -> u64
Expand description

Read the hardware timestamp/cycle counter.

Returns a raw counter value suitable for entropy collection via jitter timing.

  • x86_64: RDTSC (Time Stamp Counter).
  • AArch64: CNTVCT_EL0 (Virtual Timer Count).
  • RISC-V: rdcycle CSR.