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
# 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
# File lib/puppet/util/profiler/wall_clock.rb, line 9 def do_start(description, metric_id) Timer.new end