fn format_duration(seconds: f64) -> String
Format duration to show appropriate precision.
= 1s: show 1 decimal place