Sha256: a9a27b73260445f39ef2a56f8dfe8b12b39d9c96a37a52702a68dda365ad18ca
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
module VagrantPlugins module Cosmic 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-cosmic-0.2.0 | lib/vagrant-cosmic/util/timer.rb |
vagrant-cosmic-0.1.0 | lib/vagrant-cosmic/util/timer.rb |