class Nanoc::Core::Instrumentor

@api private

Public Class Methods

call(key, *args) { || ... } click to toggle source
# File lib/nanoc/core/instrumentor.rb, line 7
def self.call(key, *args)
  stopwatch = DDMetrics::Stopwatch.new
  stopwatch.start
  yield
ensure
  stopwatch.stop
  Nanoc::Core::NotificationCenter.post(key, stopwatch.duration, *args)
end