class Puppet::Util::Profiler::WallClock::Timer
Constants
- FOUR_DECIMAL_DIGITS
Public Class Methods
new()
click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb 21 def initialize 22 @start = Time.now 23 end
Public Instance Methods
stop()
click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb 25 def stop 26 @time = Time.now - @start 27 @time 28 end
to_s()
click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb 30 def to_s 31 format(FOUR_DECIMAL_DIGITS, @time) 32 end