From: Harold Hausman Date: 2005-11-12T01:04:26+09:00 Subject: Re: Accurate Timing in ruby ------=_Part_19021_20371307.1131725062894 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Silly Windows. I haven't looked at the source but it sounds like it might be using ::GetTickCount(), if thats the case it could probably be refactored to use ::QueryPerformanceCounter() which is a significantly higher resolution timer. Of course, then questions of 9x compatibility come up. The idea of using the SDL wrapper for making a game is probably a good one though. -Harold On 11/11/05, Robert McGovern 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. > > Mmm, I think your right ... my XP box reports: > > irb(main):001:0> a=3DTime.now;while Time.now=3D=3Da;end;Time.now-a > =3D> 0.016 > > for a Athlon 2800. > > ------=_Part_19021_20371307.1131725062894--