Sha256: ba12b72a0496b7a52834043c5ebc153c56bfd109ad44e3721de23efff0eeb387

Contents?: true

Size: 186 Bytes

Versions: 5

Compression:

Stored size: 186 Bytes

Contents

module Puppet::Scheduler
  class Timer
    def wait_for(seconds)
      if seconds > 0
        select([], [], [], seconds)
      end
    end

    def now
      Time.now
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-3.2.2 lib/puppet/scheduler/timer.rb
puppet-3.2.1 lib/puppet/scheduler/timer.rb
puppet-3.2.1.rc1 lib/puppet/scheduler/timer.rb
puppet-3.2.0.rc2 lib/puppet/scheduler/timer.rb
puppet-3.2.0.rc1 lib/puppet/scheduler/timer.rb