Method: Async::Clock#reset!

Defined in:
lib/async/clock.rb

#reset!Object

Reset the total elapsed time. If the clock is currently running, reset the start time to now.


66
67
68
69
70
71
72
# File 'lib/async/clock.rb', line 66

def reset!
	@total = 0
	
	if @started
		@started = Clock.now
	end
end