123456789_123456789_123456789_123456789_123456789_

Class: Benchmark

Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/core_ext/benchmark.rb

Class Method Summary

Class Method Details

.ms(&block)

:nodoc

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/benchmark.rb', line 6

def ms(&block) # :nodoc
  # NOTE: Please also remove the Active Support `benchmark` dependency when removing this
  ActiveSupport.deprecator.warn <<~TEXT
    `Benchmark.ms` is deprecated and will be removed in Rails 8.1 without replacement.
  TEXT
  ActiveSupport::Benchmark.realtime(:float_millisecond, &block)
end