method

time_with_block

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