Method: Async::Clock#total

Defined in:
lib/async/clock.rb

#totalObject

The total elapsed time including any current duration.



58
59
60
61
62
63
64
65
66
# File 'lib/async/clock.rb', line 58

def total
  total = @total
  
  if @started
    total += (Clock.now - @started)
  end
  
  return total
end