Sha256: e0c4bef54512b602e297ecb5a7cbeddf878d8e31f5db4ea31fe00a529307f0bd

Contents?: true

Size: 175 Bytes

Versions: 14

Compression:

Stored size: 175 Bytes

Contents

module Vitals::Reporters
  class BaseReporter
    def time(m)
      start = Time.now
      yield
      timing(m, Vitals::Utils::sec_to_ms(Time.now - start))
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vitals-0.12.0 lib/vitals/reporters/base_reporter.rb
vitals-0.11.1 lib/vitals/reporters/base_reporter.rb
vitals-0.11.0 lib/vitals/reporters/base_reporter.rb
vitals-0.10.1 lib/vitals/reporters/base_reporter.rb
vitals-0.10.0 lib/vitals/reporters/base_reporter.rb
vitals-0.9.1 lib/vitals/reporters/base_reporter.rb
vitals-0.9.0 lib/vitals/reporters/base_reporter.rb
vitals-0.8.1 lib/vitals/reporters/base_reporter.rb
vitals-0.8.0 lib/vitals/reporters/base_reporter.rb
vitals-0.7.0 lib/vitals/reporters/base_reporter.rb
vitals-0.6.0 lib/vitals/reporters/base_reporter.rb
vitals-0.5.0 lib/vitals/reporters/base_reporter.rb
vitals-0.4.0 lib/vitals/reporters/base_reporter.rb
vitals-0.3.0 lib/vitals/reporters/base_reporter.rb