Re: Resolution of WdfTimer?



Don Burn schrieb:
"Joerg Hoppe" <jhoppe@xxxxxxxxxxxxxxxx> wrote in message news:eMd1k9iOHHA.4940@xxxxxxxxxxxxxxxxxxxxxxx
I'm porting an old WDM driver to KMDF.

Is WdfTimer still limited to a resolution of
KeQueryTimeIncrement(), which was approx 10 milliseconds in
former version of Windows?

If yes: how can I get a resolution of < 1 milliseconds?

WdfTimer is based on the the current timer, so there is no difference in resolution. Even if you play games the best timer resolution is 1 millisecond and the delays in the system mean you really do not get that.
I once heard a rumor that there are gaming/multimedia related time services which offer greater resolution.
Do you know more?

Btw: Years ago, under Win9x, there was "VTD_Begin_Min_Int_Period()" to enhance the timer. I really miss that.


.



Relevant Pages

  • Re: VB6 code runs different speeds on different PCs
    ... As you've discovered, the minimum Sleep period can be different on different machines (5 milliseconds on my own WinXP system, but longer than that on others I think). ... You can get whatever "game rate" you want in a closed loop of course, by checking a high resolution timing source. ... If I were you I would use a proper Timer with a higher resolution that the standard VB Timer and run your entire game in the Timer event. ... Admittedly, updating their positions more than once every ten milliseconds does appear to give smoother animation (even though the video frame rate simply cannot draw a new frame at a rate greater than every 10 milliseconds,or so, depending on your display settings) because it tends iron out the differences more. ...
    (microsoft.public.vb.general.discussion)
  • Re: Time::HiRes usleep on windows strange behaviour...please please help!!
    ... Your timer resolution will be equal to the time duration between system ticks. ... your maximum resolution will be ten milliseconds. ... Rather pointless to pursue faster speeds for internet transaction ...
    (comp.lang.perl.misc)
  • Re: timing VBA execution
    ... Not sure 10 milliseconds is enough resolution, ... > OSAX is Open Scripting Architecture eXtension - also called a Scripting ... > Since the PowerPC has a microsecond timer available, ...
    (microsoft.public.mac.office.excel)
  • Re: alternative to gettickcount
    ... before proceeding with a timing test). ... a dozen milliseconds before calling timeGetTime?] ... resolution of timeGetTime does NOT default to one millisecond. ... It's an XP system at the moment, and the resolution appears to be the ...
    (microsoft.public.vb.general.discussion)
  • Re: How to use SystemTimeToFileTime api?
    ... The dwLowDateTime entry contains the time in 100 nanosecond units whereas the SystemTime has a best resolution of one millisecond. ... In fact if you run the loop that I have suggested and if you look closely at the output in the ListBox you will see that you can also partially ignore the fifth and sixth low order digits as well, because they represent milliseconds and tens of milliseconds and the SystemTime only changes every ten milliseconds in XP and Vista. ...
    (microsoft.public.vb.general.discussion)