Sha256: f0c85a8699fe1a01188b0aa4943dbe050babb96512c30ff922c4f50cd49787d6

Contents?: true

Size: 155 Bytes

Versions: 58

Compression:

Stored size: 155 Bytes

Contents

module Bench
  module Timer
    def time
      start = Time.now
      yield
      end_time = Time.now   
      end_time.to_f - start.to_f
    end
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
rhoconnect-3.0.1 bench/lib/bench/timer.rb
rhoconnect-3.0.0 bench/lib/bench/timer.rb
rhoconnect-3.0.0.rc1 bench/lib/bench/timer.rb
rhoconnect-3.0.0.beta3 bench/lib/bench/timer.rb
rhoconnect-3.0.0.beta1 bench/lib/bench/timer.rb
rhosync-2.1.10 bench/lib/bench/timer.rb
rhosync-2.1.7 bench/lib/bench/timer.rb
rhosync-2.1.6 bench/lib/bench/timer.rb
rhosync-2.1.3 bench/lib/bench/timer.rb
rhosync-2.1.2 bench/lib/bench/timer.rb
rhosync-2.1.1 bench/lib/bench/timer.rb
rhosync-2.1.0 bench/lib/bench/timer.rb
rhosync-2.1.0.beta.2 bench/lib/bench/timer.rb
rhosync-2.1.0.beta.1 bench/lib/bench/timer.rb
rhosync-2.0.9 bench/lib/bench/timer.rb
rhosync-2.0.8 bench/lib/bench/timer.rb
rhosync-2.0.7 bench/lib/bench/timer.rb
rhosync-2.0.6 bench/lib/bench/timer.rb
rhosync-2.0.5 bench/lib/bench/timer.rb
rhosync-2.0.4 bench/lib/bench/timer.rb