Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Benchmark::Tms#memberwise

memberwise(op, x)

Returns a new Tms object obtained by memberwise operation op of the individual times for this Tms object with those of the other Tms object (x).

op can be a mathematical operation such as +, -, *, /

See also #format #to_a #add! #to_s also in 3.4 · 3.3 · 3.2 · 3.1