Sha256: 034ca614c225f1fa4ae75ae798a4b6fc7b90498dd611bfe10cb35016208c310d

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require "benchmark"

class << Benchmark
  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
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
activesupport-8.0.1 lib/active_support/core_ext/benchmark.rb
activesupport-8.0.0.1 lib/active_support/core_ext/benchmark.rb
activesupport-8.0.0 lib/active_support/core_ext/benchmark.rb
activesupport-8.0.0.rc2 lib/active_support/core_ext/benchmark.rb
activesupport-8.0.0.rc1 lib/active_support/core_ext/benchmark.rb
activesupport-8.0.0.beta1 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha2 lib/active_support/core_ext/benchmark.rb
omg-activesupport-8.0.0.alpha1 lib/active_support/core_ext/benchmark.rb