Sha256: 4b14cc8e2861caafbe8b017a0fb3e940fe7dec5b080ade0bb357c5c43d33bd32
Contents?: true
Size: 354 Bytes
Versions: 4
Compression:
Stored size: 354 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vagrant-hp-0.1.4 | lib/vagrant-hp/util/timer.rb |
vagrant-hp-0.1.3 | lib/vagrant-hp/util/timer.rb |
vagrant-hp-0.1.2 | lib/vagrant-hp/util/timer.rb |
vagrant-hp-0.1.1 | lib/vagrant-hp/util/timer.rb |