pub fn millis_to_nanos(millis: f64) -> u64
Expand description
Converts milliseconds (ms) to nanoseconds (ns).
Casting f64 to u64 by truncating the fractional part is intentional for unit conversion, which may lose precision and drop negative values after clamping.