Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / core_ext / benchmark.rb
diff --git a/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb b/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb
new file mode 100644 (file)
index 0000000..79ba165
--- /dev/null
@@ -0,0 +1,12 @@
+require 'benchmark'
+
+class << Benchmark
+  remove_method :realtime
+
+  def realtime
+    r0 = Time.now
+    yield
+    r1 = Time.now
+    r1.to_f - r0.to_f
+  end
+end