method
benchmark
rails latest stable - Class:
ActiveSupport::Testing::Metrics::Base
benchmark()public
No documentation available.
# File activesupport/lib/active_support/testing/performance.rb, line 251
def benchmark
with_gc_stats do
before = measure
yield
@total += (measure - before)
end
end