item(label = "")
Registers the given label and block pair in the job list.
# File lib/benchmark.rb, line 334 def item(label = "", &blk) # :yield: raise ArgumentError, "no block" unless block_given? label = label.to_s w = label.length @width = w if @width < w @list << [label, blk] self end