Skip to content

Instantly share code, notes, and snippets.

@superfeedr
Created October 29, 2009 22:59
Show Gist options
  • Save superfeedr/221921 to your computer and use it in GitHub Desktop.
Save superfeedr/221921 to your computer and use it in GitHub Desktop.
require "rubygems"
require "eventmachine"
EM.epoll
EM.run {
now = Time.now
EM.add_periodic_timer(1) {
puts (Time.now - (now + 1))
now = Time.now
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment