From: Edwin Van leeuwen Date: 2007-04-27T19:14:06+09:00 Subject: Re: 10 millisecond delay/callback evanwebb@gmail.com wrote: > It's unlikely to get 10ms intervals reliably even in C, so getting it > in ruby is very unlikely. > > The reason it's hard to get it even in C is (as man setitimer says): > "Time values smaller than the resolution of the system clock are > rounded up to this resolution (typically 10 milliseconds)." I've been reading about this a bit lately and as far as I understand it, windows has a 15ms "tick" (this might be different for different windows versions) The linux tick is by default 10ms. You can change linux to 1ms though (1000HZ), by changing a kernel setting: CONFIG_HZ_1000=y I use 1000 HZ and my output is: 123 133 143 153 163 173 183 193 203 213 223 233 Edwin -- Posted via http://www.ruby-forum.com/.