Sha256: 1102b2b617fad51d1e7875a970fe40bef819d185918cf0c48c2acca6bd2497ce

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module VagrantPlugins
  module HP
    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

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-hp-0.1.0 lib/vagrant-hp/util/timer.rb