Methods
Classes and Modules
Class Timer::Dummy
Attributes
[R] end_time
[R] start_time
[RW] time_limit
Public Class methods
new( time_limit=nil, &block ) [ source ]
Public Instance methods
defuse() [ source ]

kill time limit thread, if any

limit( time_limit=nil ) [ source ]

establish a timelimit on execution

on_timeout( &block ) [ source ]
reset() [ source ]

Stops and resets the timer. If the timer was running returns the total time. If not returns 0.

resetlimit() [ source ]

Resets the time limit. Same as:

  t.stop
  t.start
running?() [ source ]

Queries whether the timer is still running.

start() [ source ]
stop() [ source ]

Stops timer and returns total time. If timer was not running returns false.

stopped?() [ source ]

Queries whether the timer is still not running.

total_time() [ source ]

Queries total recorded time of timer.