K
kerplunkwhoops
Hello
I am wanting to use the high accuracy of System.Diagnostics.Stopwatch
to get the current time using GetTimeSpan.
Underneath, System.Diagnostics.Stopwatch.GetTimeStamp uses the win32
API QueryPerformanceCounter which has a reliability issue and can jump
forward unexpectedly (http://support.microsoft.com/kb/274323). Does
System.Diagnostics.Stopwatch.GetTimeStamp 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.Diagnostics.Stopwatch if possible.
Many thanks
Paul
I am wanting to use the high accuracy of System.Diagnostics.Stopwatch
to get the current time using GetTimeSpan.
Underneath, System.Diagnostics.Stopwatch.GetTimeStamp uses the win32
API QueryPerformanceCounter which has a reliability issue and can jump
forward unexpectedly (http://support.microsoft.com/kb/274323). Does
System.Diagnostics.Stopwatch.GetTimeStamp 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.Diagnostics.Stopwatch if possible.
Many thanks
Paul