Skip to main content

rdtsc

Function rdtsc 

Source
pub fn rdtsc() -> u64
Expand description

Read the Time Stamp Counter (TSC).

Returns the number of CPU cycles since reset. Available from the very first instruction : use this as the sole timing source during early boot (before APIC/PIT timers are configured).