From: Charles Oliver Nutter Date: 2008-10-11T08:42:24+09:00 Subject: Re: Ruby Sleep Robert Klemme wrote: > On 10.10.2008 17:47, Ricardo Giorni wrote: >> Ruby sleep is based on the system time, and it doesn't work well for me, >> since my system time can fluctuate. > > What exactly is this supposed to mean? Does your system clock change > arbitrarily? That sounds like a very bad thing to have and I would try > to fix it. System clocks are not generally guaranteed to be accurate to the same level that processor ticks guarantee. So you can run into cases where short sleeps never happen or run arbitrarily too long. Of course in Ruby (MRI) thread scheduling is largely cooperative, so the OP is probably expecting a lot out of it anyway. - Charlie