Method: Datadog::Core::Utils::Time.measure
- Defined in:
- lib/datadog/core/utils/time.rb
permalink .measure(unit = :float_second) ⇒ Object
[View source]
49 50 51 52 53 54 |
# File 'lib/datadog/core/utils/time.rb', line 49 def measure(unit = :float_second) before = get_time(unit) yield after = get_time(unit) after - before end |