hai folks,
http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
I found an example here to bypass 49.7 limit.The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.
http://www.devx.com/tips/Tip/15355
but i dont undestand this part what he really doing
appricate if any one can explain above or give a diffrent solution.Code:' Handle two's complement AND the case where ' timeGetTime/GetTickCount wraps at (2 ^ 32)ms, ' or ~49.7 days: If (TickEnd < 0) Or (TickEnd < TickStart) Then TickEnd = TickEnd + TwoToThe32nd
tx




Reply With Quote