Sha256: 65a7e4aad7a0efd4b5277034c246c1b46d5577a668863dc343df612843d9a75c

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'uvrb'

start = Time.now

loop = UV::Loop.default

count = 0
timer = loop.timer
$stdout << "\r\n"

timer.start(1, 1) do |status|
  $stdout << "\r#{count}"
  if count >= 10000
    timer.close do
      $stdout << "\n"
    end
  end
  count += 1
end

loop.run
$stdout << "\n"

puts Time.now - start

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uvrb-0.2.0 examples/example_oop.rb
uvrb-0.1.4 examples/example_oop.rb
uvrb-0.1.3 examples/example_oop.rb
uvrb-0.1.2 examples/example_oop.rb
uvrb-0.1.1 examples/example_oop.rb
uvrb-0.1.0 examples/example_oop.rb