pub fn secs_to_millis(secs: f64) -> Result<u64>
Converts seconds to milliseconds (ms), rounding to the nearest millisecond.
Returns an error if secs is non-finite or cannot be represented as u64 milliseconds.
secs
u64