Source

RubyLearning / ProjectTrak / vendor / rails / activesupport / lib / active_support / core_ext / benchmark.rb

Full commit
require 'benchmark'

class << Benchmark
  remove_method :realtime

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