Is timeGetTime monotonic and uniform?



I'm looking for a way to measure durations on Windows
(i.e. differences between start and end time)
The stock GetSystemTimeAsFileTime is not appropriate,
as the result will be incorrect if the system time
is adjusted, e.g. due to the time service starting
(or manual adjustment).

Next candidate is GetTickCount(). I know this runs
over after 47d, but I wonder whether the description
"milliseconds since the system has started" is really
correct, given that it also says "This value is also affected
by adjustments made by the GetSystemTimeAdjustment function."

Next candidate is timeGetTime(). It has nearly the
same description as GetTickCount, but without the
remark that it is influenced by GetSystemTimeAdjustment.
Does that mean it is not influenced by time adjustments?
Or did they just leave that out of the description?

Are there any other functions I should use?

Regards,
Martin
.



Relevant Pages

  • Re: Is timeGetTime monotonic and uniform?
    ... remark that it is influenced by GetSystemTimeAdjustment. ... Does that mean it is not influenced by time adjustments? ... Note that the tick rate varies as a function of the CPU ... You can use the API function QueryPerformanceCounter ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: GetTickCount
    ... GetSystemTimeAdjustment function. ... Meine Doku findet den Text zu GetSystemTimeAdjustment ... welches aber nichts zu GetTickCount aussagt. ...
    (de.comp.lang.delphi.misc)