Skip to main content

Module tsc

Module tsc 

Source

Functionsยง

frequency
Get the TSC frequency in Hz
init
Initialize TSC by calibrating it against the PIT
read
Read the current TSC value
sleep_us
Sleep for a given number of microseconds using TSC Requires initialization first
time_since_boot
Get time since boot in seconds (f64)