aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/core_ext/benchmark.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/benchmark.rb b/activesupport/lib/active_support/core_ext/benchmark.rb
index 98e61e646a..79ba165e3a 100644
--- a/activesupport/lib/active_support/core_ext/benchmark.rb
+++ b/activesupport/lib/active_support/core_ext/benchmark.rb
@@ -1,12 +1,12 @@
require 'benchmark'
-module Benchmark
+class << Benchmark
remove_method :realtime
+
def realtime
r0 = Time.now
yield
r1 = Time.now
r1.to_f - r0.to_f
end
- module_function :realtime
-end \ No newline at end of file
+end