Sha256: 1821547229c53b988eada779a470b7b69b07458681b931562943db443326ef94

Contents?: true

Size: 160 Bytes

Versions: 39

Compression:

Stored size: 160 Bytes

Contents

require 'benchmark'

class << Benchmark
  remove_method :realtime

  def realtime
    r0 = Time.now
    yield
    r1 = Time.now
    r1.to_f - r0.to_f
  end
end

Version data entries

39 entries across 38 versions & 13 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
p8-castronaut-0.6.1.1 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.6.0 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.6.1 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.7.4 vendor/activesupport/lib/active_support/core_ext/benchmark.rb
relevance-castronaut-0.7.5 vendor/activesupport/lib/active_support/core_ext/benchmark.rb