Function cpuid::clock_frequency [] [src]

pub fn clock_frequency() -> Option<i32>

Gets the CPU clock frequency in MHz.

The underlying implementation uses several methods to discover CPU speed, including direct measurement. If all these methods fail, function returns None.