Class: Timer::Dummy

Inherits:
Timer show all
Defined in:
lib/supplemental/facets/timer.rb

Overview

Timer::Dummy - Dummy Timer (i.e. no real time limit) – TODO: Timer::Dummy needs some work. ++

Instance Attribute Summary

Attributes inherited from Timer

#time_limit

Instance Method Summary collapse

Methods inherited from Timer

#defuse, #end_time, #initialize, #limit, #on_timeout, #reset, #reset_limit, #running?, #start_time, #stopped?, time, #total_time

Constructor Details

This class inherits a constructor from Timer

Instance Method Details

#startObject



192
193
194
195
196
197
198
# File 'lib/supplemental/facets/timer.rb', line 192

def start
  if block_given? then
    yield
  else
    time_limit()
  end
end

#stopObject



200
201
202
# File 'lib/supplemental/facets/timer.rb', line 200

def stop
  false
end