< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] Suggestion to replace GetSystemTime() with GetTickCount() on Windows


Hi, all,

Today while running my DUM based SIP client, a friend
changed my system time to backward, i.e., change from
Nov 25 to Nov 24. And the SIP client didnot re-fresh
the registration anymore. After reviewing the Timer
class, and I found it is using GetSystemTime() and
this is the reason. The re-registration timer will
expire one day later! It is better to use the system
startup time instead of the wall-clock time, so please
change GetSystemTime to GetTickCount() for Windows. I
tested with the GetTickCount and found that there is
no problem.

Any comments are welcome.

kaiduan

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca