Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove code for Ruby < 1.8.7

  • Loading branch information...
commit b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc 1 parent c4846c9
@spastorino spastorino authored
Showing with 0 additions and 12 deletions.
  1. +0 −12 activesupport/lib/active_support/core_ext/benchmark.rb
View
12 activesupport/lib/active_support/core_ext/benchmark.rb
@@ -1,18 +1,6 @@
require 'benchmark'
class << Benchmark
- # Earlier Ruby had a slower implementation.
- if RUBY_VERSION < '1.8.7'
- remove_method :realtime
-
- def realtime
- r0 = Time.now
- yield
- r1 = Time.now
- r1.to_f - r0.to_f
- end
- end
-
def ms
1000 * realtime { yield }
end
Please sign in to comment.
Something went wrong with that request. Please try again.