Class: Puppet::Util::Profiler::Aggregate::Timer
- Defined in:
- lib/puppet/util/profiler/aggregate.rb
Instance Method Summary collapse
-
#initialize ⇒ Timer
constructor
A new instance of Timer.
- #stop ⇒ Object
Constructor Details
#initialize ⇒ Timer
Returns a new instance of Timer.
77 78 79 |
# File 'lib/puppet/util/profiler/aggregate.rb', line 77 def initialize @start = Time.now end |
Instance Method Details
#stop ⇒ Object
81 82 83 |
# File 'lib/puppet/util/profiler/aggregate.rb', line 81 def stop Time.now - @start end |