Skip to main content

ticks_per_10ms

Function ticks_per_10ms 

Source
pub fn ticks_per_10ms(ctx: &ServiceContext) -> u64
Expand description

How many ticks make 10 ms on this machine, or 0 if the kernel could not calibrate the counter.

For converting a measurement in ticks into time for a report, and for configuring a domain library that counts in ticks. Zero is a real answer, not an error: say so rather than divide by it.