pub fn format_duration(seconds: f64) -> String
Format a duration in seconds to a human-readable string.