gstuff
pub fn duration_to_ms(duration: Duration) -> u64
Converts the duration into a number of milliseconds.