using eventmachine ruby, possible 0.5 seconds? or 0.01?
the docs 1 second.
using following
require 'eventmachine' thread.new { em::run} while !em.reactor_running? ; end em::add_periodic_timer(0.01) { puts "#{time.now.to_f}" } sleep
you can check displayed numbers , verify difference of 2 consecutive ones close duration specified em::add_periodic_timer
. on home pc 0 load can go down 0.001 seconds without problems.
Comments
Post a Comment