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.1.18.beta2 bench/lib/bench/timer.rb
rhosync-2.1.18.beta1 bench/lib/bench/timer.rb
rhosync-2.1.17 bench/lib/bench/timer.rb
rhosync-2.1.17.beta7 bench/lib/bench/timer.rb
rhosync-2.1.17.beta6 bench/lib/bench/timer.rb
rhosync-2.1.17.beta5 bench/lib/bench/timer.rb
rhosync-2.1.17.beta4 bench/lib/bench/timer.rb
rhosync-2.1.17.beta3 bench/lib/bench/timer.rb
rhosync-2.1.17.beta2 bench/lib/bench/timer.rb
rhosync-2.1.17.beta1 bench/lib/bench/timer.rb
rhosync-2.1.16 bench/lib/bench/timer.rb
rhosync-2.1.15 bench/lib/bench/timer.rb
rhosync-2.1.14 bench/lib/bench/timer.rb
rhosync-2.1.13 bench/lib/bench/timer.rb
rhoconnect-3.0.5 bench/lib/bench/timer.rb
rhoconnect-3.0.4 bench/lib/bench/timer.rb
rhosync-2.1.12 bench/lib/bench/timer.rb
rhoconnect-3.0.3 bench/lib/bench/timer.rb
rhoconnect-3.0.2 bench/lib/bench/timer.rb
rhosync-2.1.11 bench/lib/bench/timer.rb