"Lars Bargmann" <lars@bargmann.dk> skrev i en meddelelse
news:3d492249$0$1226$edfadb0f@dspool01.news.tele.dk...
> Hmmm, jeg kan huske noget med at en fætter ved navn Martin Waldenberg
eller
> lignende har lavet en meget højopløselig timer.... Prøv at finde ham på
>
www.torry.net
Jeg fandt ikke lige noget med ham men en del andre. Men så har jeg i mellem
tiden også funden denne text i Win32 DR
**********
In Win32-based applications, the GetTickCount() timer resolution on Windows
NT, version 3.1, is 15 milliseconds (ms) for x86 and 10 ms for MIPS and
Alpha. On Windows NT, version 3.5, the GetTickCount() timer resolution is
10 ms on the 486 or greater, but the resolution is still 15 ms on a 386.
NOTE: The measurements in milliseconds indicate the period of the
interrupt, not the units of the returned value.
The Win32 API QueryPerformanceCounter() returns the resolution of a high-
resolution performance counter if the hardware supports one. For x86, the
resolution is about 0.8 microseconds (0.0008 ms). For MIPS, the resolution
is about twice the clock speed of the processor. You need to call
QueryPerformanceFrequency() to get the frequency of the high-resolution
performance counter.
************
Nu har jeg lavet en løsning med QueryPerformanceCounter, og det virker fint.
Mvh
HK