Skip to main content

Module timer

Module timer 

Source
Expand description

Platform timer frequency detection.

Provides automatic detection of system timer frequencies for ARM64 and x86_64. This module is no-std compatible for basic register reading, with std-dependent calibration routines available when the std feature is enabled.

Functionsยง

counter_frequency_hz
Automatically detect the system timer frequency in Hz.
get_x86_64_tsc_freq_hz
Get x86_64 TSC frequency in Hz.
timer_resolution_ns
Returns the timer resolution in nanoseconds.