Class: ProgressBar::Components::ElapsedTimer

Inherits:
Object
  • Object
show all
Includes:
Timer
Defined in:
lib/progress_bar/components/elapsed_timer.rb

Constant Summary

Constants included from Timer

Timer::TIME_FORMAT

Instance Method Summary collapse

Methods included from Timer

#pause, #reset, #resume, #start, #started?, #stop, #stopped?

Instance Method Details

#to_sObject



6
7
8
# File 'lib/progress_bar/components/elapsed_timer.rb', line 6

def to_s
  "Time: #{elapsed_time}"
end