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