Hello
I am wanting to use the high accuracy of System.Diagnost ics.Stopwatch
to get the current time using GetTimeSpan.
Underneath, System.Diagnost ics.Stopwatch.G etTimeStamp uses the win32
API QueryPerformanc eCounter which has a reliability issue and can jump
forward unexpectedly (http://support.microsoft.com/kb/274323). Does
System.Diagnost ics.Stopwatch.G etTimeStamp take this issue into
consideration and perform a check with GetTickCount?
I am considering using win32 TimeGetTime which is accurate to 1ms
(http://gpwiki.org/index.php/VB:Timers), but would prefer to use the
managed System.Diagnost ics.Stopwatch if possible.
Many thanks
Paul
I am wanting to use the high accuracy of System.Diagnost ics.Stopwatch
to get the current time using GetTimeSpan.
Underneath, System.Diagnost ics.Stopwatch.G etTimeStamp uses the win32
API QueryPerformanc eCounter which has a reliability issue and can jump
forward unexpectedly (http://support.microsoft.com/kb/274323). Does
System.Diagnost ics.Stopwatch.G etTimeStamp take this issue into
consideration and perform a check with GetTickCount?
I am considering using win32 TimeGetTime which is accurate to 1ms
(http://gpwiki.org/index.php/VB:Timers), but would prefer to use the
managed System.Diagnost ics.Stopwatch if possible.
Many thanks
Paul