Module formatting

Module formatting 

Source

Enums§

Format

Functions§

format_bytes
format_duration
get_display_scale
Selects the largest unit where max_value remains >= 1 to avoid tiny decimals (e.g., prefers “500ms” over “0.5s”, but “2s” over “2000ms”)