Class: Timer::Dummy

Inherits:
Timer show all
Defined in:
lib/standard/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



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

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

#stopObject



201
202
203
# File 'lib/standard/facets/timer.rb', line 201

def stop
  false
end