Class: Benchmark

Inherits:
Object show all
Defined in:
activesupport/lib/active_support/core_ext/benchmark.rb

Class Method Summary collapse

Class Method Details

.ms(&block) ⇒ Object

:nodoc



6
7
8
9
10
11
12
# 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 "    `Benchmark.ms` is deprecated and will be removed in Rails 8.1 without replacement.\n  TEXT\n  ActiveSupport::Benchmark.realtime(:float_millisecond, &block)\nend\n"