instance method time_with_block

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

time_with_block()

No documentation comment.

Source
# File activesupport/lib/active_support/testing/performance.rb, line 169
        def time_with_block
          before = Time.now
          yield
          Time.now - before
        end

Defined in activesupport/lib/active_support/testing/performance.rb line 169 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Performance::Profiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close