pub fn format_duration(ms: u64) -> String
Format a duration in milliseconds to a human-readable string