Class: Puppet::Util::Profiler::Aggregate::Timer

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/util/profiler/aggregate.rb

Instance Method Summary collapse

Constructor Details

#initializeTimer

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

#stopObject



80
81
82
# File 'lib/puppet/util/profiler/aggregate.rb', line 80

def stop
  Time.now - @start
end