method
time_with_block
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Testing::Performance::Profiler
time_with_block()public
No documentation available.
# File activesupport/lib/active_support/testing/performance.rb, line 169
def time_with_block
before = Time.now
yield
Time.now - before
end