Sha256: 3d8f84be12569047812a280fa12e51fe2e73d02147fbbd9ecb6108c419a72617

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 Bytes

Contents

require_relative 'lib/enat'

every 5.seconds do |iteration|
  sleep_time = rand(5)
  puts "#{Time.now.to_f}: Sleeping for #{sleep_time} seconds... (Iteration #{iteration})"
  sleep sleep_time
  puts "#{Time.now.to_f}: Done sleeping."
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enat-0.1.2 test.rb
enat-0.1.1 test.rb
enat-0.1.0 test.rb