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.
76 77 78 |
# File 'lib/puppet/util/profiler/aggregate.rb', line 76 def initialize @start = Time.now end |
Instance Method Details
#stop ⇒ Object
80 81 82 |
# File 'lib/puppet/util/profiler/aggregate.rb', line 80 def stop Time.now - @start end |