item(label = "", *format)
public
Prints the label and measured time for the block, formatted by
format. See Tms#format for the formatting rules.
Show source
def item(label = "", *format, &blk)
print label.to_s.ljust(@width)
@list << res = Benchmark.measure(label, &blk)
print res.format(@format, *format)
res
end