Skip to main content

format_ticks

Function format_ticks 

Source
pub fn format_ticks(ticks: u64) -> (u64, u32)
Expand description

Splits a tick count into whole seconds and hundredths, using the kernel timer frequency.

Single definition shared by every command that timestamps an event (dmesg, audit, silo logs, silo events): each used to hardcode its own divisor, and silo logs was stuck on 100 Hz while the kernel may run at another rate.