Does the absolute value protect the following code from the Environment.TickCount wrap?
If Math.Abs((Environment.TickCount And Int32.MaxValue) - StartTime) > Interval Then
StartTime = (Environment.TickCount And Int32.MaxValue)
.
.
.
End If
Is there a better method of guarding against the Environment.TickCount() wrap?
(This is .NET 1.1.)
Edit - Modified code according to Microsoft Environment.TickCount help.