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_aarch64_counter_freq_hz
Get ARM64 counter frequency in Hz.
timer_resolution_ns
Returns the timer resolution in nanoseconds.