Skip to main content

format_turn_elapsed

Function format_turn_elapsed 

Source
pub fn format_turn_elapsed(duration: Duration) -> String
Expand description

Format a turn duration the way footers and outcome lines display it.

Compact clock symbols with zero parts omitted: 42s, 13m 24s, 1h 5m. The desktop app renders the same tiers through its locale catalogs; this plain-symbol shape serves the CLI surfaces that have no i18n layer.