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!news.glorb.com!newsgate.cistron.nl!skynet.be!newspost001!tjb!not-for-mail Date: Fri, 18 Feb 2005 10:04:14 +0100 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada, games and frame rate calculation References: <%jaRd.2654$kU3.625@newsread1.news.pas.earthlink.net> In-Reply-To: <%jaRd.2654$kU3.625@newsread1.news.pas.earthlink.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4215af8e$0$23954$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: a28c0d2f.news.skynet.be X-Trace: 1108717454 news.skynet.be 23954 81.242.45.112:3824 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:8411 Date: 2005-02-18T10:04:14+01:00 List-Id: Jeffrey Carter wrote: > How does one read the HW clocks under Windows? there are two functions available: QueryPerformanceCounter together with QueryPerformanceFrequency. it seems (though i'm not totally sure) to read the hardware clock: the resolution of the counter depends of the hardware you are running on. i just tested: on my 3GHz pentium, QueryPerformanceFrequency returns 2.99 GHz, which should make a counter resolution of 0.33 nanosecond. well, the problem is that MS does not give any indication of the precision of the counter. does it really count each clock tick or does it update every xxx tick ? anyway, it is still the higher resolution timer available under Windows. -- rien