Sha256: 878844160ccf02c5f5cd7a18da6d15f552210c4a8558da57866f2faa6b4e6cf4

Contents?: true

Size: 365 Bytes

Versions: 32

Compression:

Stored size: 365 Bytes

Contents

module VagrantPlugins
  module OVirtProvider
    module Util
      class Timer
        # A basic utility method that times the execution of the given
        # block and returns it.
        def self.time
          start_time = Time.now.to_f
          yield
          end_time = Time.now.to_f

          end_time - start_time
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
vagrant-ovirt4-2.2.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-2.1.3 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-2.1.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-2.0.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.2.3 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.2.2 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.2.1 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.2.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.1.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.0.2 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.0.1 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt4-1.0.0 lib/vagrant-ovirt4/util/timer.rb
vagrant-ovirt3-1.9.3 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.9.2 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.9.1 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.9.0 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.8.2 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.7.1 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.7.0 lib/vagrant-ovirt3/util/timer.rb
vagrant-ovirt3-1.6.2 lib/vagrant-ovirt3/util/timer.rb