Class: Vitals::Reporters::BaseReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/vitals/reporters/base_reporter.rb

Instance Method Summary collapse

Instance Method Details

#time(m) ⇒ Object



3
4
5
6
7
# 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