class TimerAction
Public Instance Methods
elapsed()
click to toggle source
# File lib/mspec/runner/actions/timer.rb, line 15 def elapsed @stop - @start end
finish()
click to toggle source
# File lib/mspec/runner/actions/timer.rb, line 11 def finish @stop = Time.now end
format()
click to toggle source
# File lib/mspec/runner/actions/timer.rb, line 19 def format "Finished in %f seconds" % elapsed end
register()
click to toggle source
# File lib/mspec/runner/actions/timer.rb, line 2 def register MSpec.register :start, self MSpec.register :finish, self end
start()
click to toggle source
# File lib/mspec/runner/actions/timer.rb, line 7 def start @start = Time.now end