Skip to content

Instantly share code, notes, and snippets.

@soulware
Created August 26, 2009 02:08
Show Gist options
  • Save soulware/175249 to your computer and use it in GitHub Desktop.
Save soulware/175249 to your computer and use it in GitHub Desktop.
scheduler slowdown
require 'rubygems'
require 'rufus/scheduler'
scheduler = Rufus::Scheduler.start_new
10000.times do |x|
scheduler.in(60*60) do
# nothing
end
puts "scheduled #{x}" if x%100==0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment