pub fn ms_to_ns_u32(ms: u32) -> Result<u32>
Converts milliseconds to nanoseconds. Returns an error on underflow or overflow.