Method: Summon::Benchmark#report
- Defined in:
- lib/summon/benchmark.rb
#report(name, &block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/summon/benchmark.rb', line 9 def report(name, &block) result = nil @timings << ::Benchmark.measure(name) do result = block.call end result end |