Class: Puppet::Scheduler::Timer

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/scheduler/timer.rb

Instance Method Summary collapse

Instance Method Details

#nowObject



9
10
11
# File 'lib/puppet/scheduler/timer.rb', line 9

def now
  Time.now
end

#wait_for(seconds) ⇒ Object



3
4
5
6
7
# File 'lib/puppet/scheduler/timer.rb', line 3

def wait_for(seconds)
  if seconds > 0
    sleep(seconds)
  end
end