Method: Object#benchmark
- Defined in:
- lib/sup/util.rb
#benchmark(s, &b) ⇒ Object
259 260 261 262 263 264 |
# File 'lib/sup/util.rb', line 259 def benchmark s, &b ret = nil times = Benchmark.measure { ret = b.call } debug "benchmark #{s}: #{times}" ret end |