Class: Timer::Dummy

Inherits:
Timer show all
Defined in:
lib/mega/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, #resetlimit, #running?, #stopped?, #total_time

Constructor Details

This class inherits a constructor from Timer

Instance Method Details

#startObject



208
209
210
211
212
213
214
# File 'lib/mega/timer.rb', line 208

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

#stopObject



216
217
218
# File 'lib/mega/timer.rb', line 216

def stop
  false
end