class Vitals::Reporters::BaseReporter

Public Instance Methods

time(m) { || ... } click to toggle source
# File lib/vitals/reporters/base_reporter.rb, line 3
def time(m)
  start = Time.now
  yield
  timing(m, Vitals::Utils::sec_to_ms(Time.now - start))
end