fn duration_to_millis(duration: Duration) -> u64
Safely converts Duration to milliseconds as u64, capping at u64::MAX.
u64::MAX