struct

Spectator::Formatting::Components::Runtime

Inherits Struct / Value / Object

Presents a human readable time span.

Constructors

new(span : Time::Span)

Creates the component.

Source

Instance methods

to_s(io : IO) : Nil

Appends the elapsed time to the output. The text will be formatted as follows, depending on the magnitude:

## microseconds
## milliseconds
## seconds
#:##
#:##:##
# days #:##:##
Source