class Puppet::Util::Profiler::WallClock

A profiler implementation that measures the number of seconds a segment of code takes to execute and provides a callback with a string representation of the profiling information.

@api private

Public Instance Methods

do_finish(context, description, metric_id) click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb, line 13
def do_finish(context, description, metric_id)
  {:time => context.stop,
   :msg => "took #{context} seconds"}
end
do_start(description, metric_id) click to toggle source
# File lib/puppet/util/profiler/wall_clock.rb, line 9
def do_start(description, metric_id)
  Timer.new
end