Class: Timer::Dummy

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

Overview

Timer::Dummy - Dummy Timer (i.e. no real time limit) – NEEDS WORK! ++

Instance Attribute Summary

Attributes inherited from Timer

#end_time, #start_time, #time_limit

Instance Method Summary collapse

Methods inherited from Timer

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

Constructor Details

This class inherits a constructor from Timer

Instance Method Details

#startObject



221
222
223
224
225
226
227
# File 'lib/more/facets/timer.rb', line 221

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

#stopObject



229
230
231
# File 'lib/more/facets/timer.rb', line 229

def stop
  false
end