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
rhosync-2.0.3 bench/lib/bench/timer.rb
rhosync-2.0.2 bench/lib/bench/timer.rb
rhosync-2.0.1 bench/lib/bench/timer.rb
rhosync-2.0.0 bench/lib/bench/timer.rb
rhosync-2.0.0.rc2 bench/lib/bench/timer.rb
rhosync-2.0.0.rc1 bench/lib/bench/timer.rb
rhosync-2.0.0.beta13 bench/lib/bench/timer.rb
rhosync-2.0.0.beta12 bench/lib/bench/timer.rb
rhosync-2.0.0.beta11 bench/lib/bench/timer.rb
rhosync-2.0.0.beta10 bench/lib/bench/timer.rb
rhosync-2.0.0.beta9 bench/lib/bench/timer.rb
rhosync-2.0.0.beta8 bench/lib/bench/timer.rb
rhosync-2.0.0.beta7 bench/lib/bench/timer.rb
rhosync-2.0.0.beta6 bench/lib/bench/timer.rb
rhosync-2.0.0.beta4 bench/lib/bench/timer.rb
rhosync-2.0.0.beta3 bench/lib/bench/timer.rb
rhosync-2.0.0.beta2 bench/lib/bench/timer.rb
rhosync-2.0.0.beta1 bench/lib/bench/timer.rb