From: Markus Koenig Date: 2005-11-12T01:02:27+09:00 Subject: Re: Accurate Timing in ruby Dennis Ranke wrote: > Kero wrote: >> So my PDA is more accurate than your machine (what OS is that?) > > Windows XP. > I think I got better accuracy on my iBook as well, so it's probably a > limitation of the OS functions ruby uses to retreive the time on Windows. True. There has been an MSDN magazine article about this (beware, I have only skimmed it): http://msdn.microsoft.com/msdnmag/issues/04/03/HighResolutionTimer/ In short, Windows' clock is as accurate as 10 or 15 milliseconds, depending on the hardware. The article also seems to show how to implement a more precise timer in C++ - it should also work in Ruby, but you might need to use Win32API. Good luck, Markus