Is timeGetTime monotonic and uniform?
- From: "Martin v. Löwis" <martin@xxxxxxxxxxx>
- Date: Sun, 03 Dec 2006 11:31:59 +0100
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
.
- Follow-Ups:
- Re: Is timeGetTime monotonic and uniform?
- From: Bob Masta
- Re: Is timeGetTime monotonic and uniform?
- From: Scott McPhillips [MVP]
- Re: Is timeGetTime monotonic and uniform?
- Prev by Date: Re: Direct Sound GetCurrentPosition
- Next by Date: Re: Is timeGetTime monotonic and uniform?
- Previous by thread: Re: MCI error 261 when trying MCISendString to WAV sound
- Next by thread: Re: Is timeGetTime monotonic and uniform?
- Index(es):
Relevant Pages
|