class Puppet::Util::Profiler::WallClock::Timer

Constants

FOUR_DECIMAL_DIGITS

Public Instance Methods

stop() click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb, line 25
def stop
  @time = Time.now - @start
  @time
end
to_s() click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb, line 30
def to_s
  format(FOUR_DECIMAL_DIGITS, @time)
end

Public Class Methods

new() click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb, line 21
def initialize
  @start = Time.now
end