Crate peach_metrics
Source - estimate_cpu_freq
- Used to estimate the cpu’s clock speed, from it can estimate cpu timings to realworld clock
time, i.e. how many clocks per seconds.
- get_os_time_freq
- We know that the frequency of the getTimeOfDay timer is in microseconds so we can hardcode the
system frequency to
1_000_000. - read_cpu_timer
- Reads in the Read Time-Stamp Counter (rdtsc) and returns it.
- read_os_timer
- Makes getTimeOfDay sys call and returns the result computed to seconds since the epoch