module

Filament::Util::Format

Class methods

human_bits_per_sec(bps : Float64) : String

Formats bitrates into bps, kbps, mbps, gbps

Source
human_bytes(bytes : UInt64 | Int64 | Float64) : String

Formats byte counts into human readable decimal units (KB, MB, GB)

Source
relative_time(delta : Time::Span) : String

Formats relative duration in seconds with microsecond resolution

Source