Method: DevSuite::Performance::Profiler::ExecutionTime#run
- Defined in:
- lib/dev_suite/performance/profiler/execution_time.rb
#run(&block) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/dev_suite/performance/profiler/execution_time.rb', line 9 def run(&block) result = nil timing = ::Benchmark.measure { result = yield } @stats = calculate_stats(timing) result end |