Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Benchmark::Tms#add!
() { (*untyped) -> untyped } -> untyped
add!(&blk)
lib/benchmark.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/benchmark.rb, line 461
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