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 Method Summary collapse

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