From: Lyle Johnson Date: 2002-06-28T11:46:21+09:00 Subject: Re: Ruby timer or timed event handling? "Serg Koren" wrote in message news:B9413D30.62E9%Serg@VisualNewt.com... > Hi > > Is there an accepted way of handling timed interval events? I'd like to > process some code every 30 seconds. I can't seem to find any timer or > interval classes in Ruby's library. I'll bet there's a better way, but what about creating a thread that sleeps thirty seconds in between doing its thing? th = Thread.new do loop do puts "I just did something, going back to sleep now!" sleep(5) end end HTH, Lyle