Sha256: c0960604f4b66895736002a1968e2b9abd786a091ea86220035f908da2a9d024
Contents?: true
Size: 318 Bytes
Versions: 16
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true module Nanoc::Int # @api private class Instrumentor def self.call(key, *args) stopwatch = DDMetrics::Stopwatch.new stopwatch.start yield ensure stopwatch.stop Nanoc::Int::NotificationCenter.post(key, stopwatch.duration, *args) end end end
Version data entries
16 entries across 16 versions & 1 rubygems