# File lib/ruby-progressbar/components/timer.rb, line 19 def pause stop end
# File lib/ruby-progressbar/components/timer.rb, line 35 def reset @started_at = nil @stopped_at = nil end
# File lib/ruby-progressbar/components/timer.rb, line 23 def resume start end
# File lib/ruby-progressbar/components/timer.rb, line 8 def start @started_at = stopped? ? now - (@stopped_at - @started_at) : now @stopped_at = nil end
# File lib/ruby-progressbar/components/timer.rb, line 27 def started? !!@started_at end
Generated with the Darkfish Rdoc Generator 2.