Sha256: d4d72d7452229f3f1a699695c61bbf613ff9d508d1deb85c7548bf8280216b72
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
module VagrantPlugins module Cloudstack 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.3.0 | lib/vagrant-cloudstack/util/timer.rb |
vagrant-cloudstack-1.2.0 | lib/vagrant-cloudstack/util/timer.rb |