Re: PC timer



To do this at ring-3 without ASM you might want to try
QueryPerformanceCounter() and QueryPerformanceFrequency().

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/queryperformancecounter.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/queryperformancefrequency.asp

Regards,

-Le Chaud Lapin-

.



Relevant Pages

  • Re: rdtsc vs. GetTickCount()
    ... I use QueryPerformanceCounter & QueryPerformanceFrequency in all the B&V's. ... Best regards ... Dennis ... Donate to the Fastcode Project: ...
    (borland.public.delphi.language.basm)
  • Re: gettickcount returns a negative number???
    ... QueryPerformanceCounter in his suggestions for management. ... any problems but I admit I am not sure. ... Prev by Date: ...
    (microsoft.public.vb.winapi)
  • Re: gettickcount returns a negative number???
    ... >> Have you not considered that before recommending it? ... >QueryPerformanceCounter is inappropriate. ... QueryPerformanceCounter is your rate of heart beat ... Prev by Date: ...
    (microsoft.public.vb.winapi)
  • Re: gettickcount returns a negative number???
    ... >>> Have you not considered that before recommending it? ... >>QueryPerformanceCounter is inappropriate. ... QueryPerformanceFrequency is the heart beat, ... Prev by Date: ...
    (microsoft.public.vb.winapi)