Class: Benchmark::Tms

Inherits:
Object show all
Defined in:
lib/awsbase/benchmark_fix.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add!(&blk) ⇒ Object

:nodoc:



29
30
31
32
33
34
35
36
37
# File 'lib/awsbase/benchmark_fix.rb', line 29

def add!(&blk)
  t = Benchmark::measure(&blk)
  @utime  = utime + t.utime
  @stime  = stime + t.stime
  @cutime = cutime + t.cutime
  @cstime = cstime + t.cstime
  @real   = real + t.real
  self
end