diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-18 03:46:01 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-18 03:46:01 -0300 |
commit | b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc (patch) | |
tree | be428e5d8cb1dd4a6b06e3ea2e9a7212e6f8902a /activesupport/lib/active_support/core_ext | |
parent | c4846c99c51a33bd66933dd0fd5dacfac99fb9de (diff) | |
download | rails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.tar.gz rails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.tar.bz2 rails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.zip |
remove code for Ruby < 1.8.7
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/benchmark.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activesupport/lib/active_support/core_ext/benchmark.rb b/activesupport/lib/active_support/core_ext/benchmark.rb index ae57b152e8..2d110155a5 100644 --- a/activesupport/lib/active_support/core_ext/benchmark.rb +++ b/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 |