Sha256: d399ec131fef3c823e41dd960c03b15aa3c8377f406c83a1976271753f1573f6

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-tiktalik-0.0.4 lib/vagrant-tiktalik/util/timer.rb
vagrant-tiktalik-0.0.3 lib/vagrant-tiktalik/util/timer.rb
vagrant-tiktalik-0.0.2 lib/vagrant-tiktalik/util/timer.rb
vagrant-tiktalik-0.0.1 lib/vagrant-tiktalik/util/timer.rb