struct Spectator::Formatting::Components::Runtime
   
  
  Overview
Presents a human readable time span.
Defined in:
spectator/formatting/components/runtime.crConstructors
- 
        .new(span : Time::Span)
        
          
Creates the component.
 
Instance Method Summary
- 
        #to_s(io : IO) : Nil
        
          
Appends the elapsed time to the output.
 
Instance methods inherited from class Object
  
  
    
      should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not
Constructor Detail
Instance Method Detail
        
        def 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 #:##:##