Sha256: ae8515de0145ae2f94659736bb3bd27567014a0368b9709b972ff9ea032adb8c
Contents?: true
Size: 398 Bytes
Versions: 23
Compression:
Stored size: 398 Bytes
Contents
# frozen_string_literal: true module VagrantPlugins module ProviderLibvirt 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
23 entries across 23 versions & 1 rubygems