Function arti::logging::time::ilog10_roundup

source ·
fn ilog10_roundup(x: u32) -> u8
Expand description

Compute the smallest n such that 10^n >= x.

Since the input is a u32, this will return a value in the range 0..10.