From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a447112bc8b81379 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 16 Feb 2005 20:33:33 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada, games and frame rate calculation References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 16 Feb 2005 20:33:33 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-b37+TktfUPOgCniC/15RR222S4I3BvKNrT/A06aqcCm7+UtxRPpsSd3Q2oqig9vdQUVM4nPM8dVcJr+!ps76cpgisJQNHen49ZyJY+uUqtWgdAAYxQyMDXisaKYUb0se2+veuAFOsoAIdw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:8370 Date: 2005-02-16T20:33:33-06:00 List-Id: > GNAT, IIRC, has an accuracy of 1 ns, so 0.0333 is going to be a lot Type Duration has a small 'small, but the Windows Performance Counter only ticks (approximately) every 1/nth of a microsecond, where n = 3 on the machine I'm using now. So two successive clock reads, if they don't give the same value, will differ at least by 300 or so nanoseconds. You may want to look up "Time the Clock" on AdaPower.