From: Brian Candler Date: 2008-10-21T06:12:20+09:00 Subject: Re: timer angico wrote: > Hi, All. > > Can anybody tell me how to implement kind of a timer in Ruby, similar to > the following one from Java? > > timer = new Timer( 200, handler ); // call handler each 200 milliseconds If your handler is short and you don't care too much about accuracy: Thread.new { loop { handler; sleep 0.2 } } -- Posted via http://www.ruby-forum.com/.