Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/watcher/ |
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/watcher/timer.rb |
class Puppet::Util::Watcher::Timer attr_reader :timeout def initialize(timeout) @timeout = timeout end def start @start_time = now end def expired? (now - @start_time) >= @timeout end def now Time.now.to_i end end