class Benchmark::Job
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/benchmark/0/benchmark.rbs, line 268
def item: (?String label) { () -> void } -> self
Prints the label and measured time for the block, formatted by format. See Tms#format for the formatting rules.
Also aliased as: report
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/benchmark/0/benchmark.rbs, line 271
def list: () -> Array[untyped]
An array of 2-element arrays, consisting of label and block pairs.