instance method reset_runtimes

Ruby on Rails 8.1.2

Since v8.1.2

Signature

reset_runtimes()

No documentation comment.

Source
# File activerecord/lib/active_record/runtime_registry.rb, line 20
      def reset_runtimes
        sql_runtime_was = @sql_runtime
        @sql_runtime = 0.0
        @async_sql_runtime = 0.0
        sql_runtime_was
      end

Defined in activerecord/lib/active_record/runtime_registry.rb line 20 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::RuntimeRegistry::Stats

Type at least 2 characters to search.

↑↓ navigate · open · esc close