mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[SYSSETUP][TIMEDATE] Use exact setTimer() timeouts, to stay in sync (#3355)
CORE-13121
This commit is contained in:
@@ -429,15 +429,6 @@ UINT CTrayClockWnd::CalculateDueTime()
|
||||
if (!g_TaskbarSettings.bShowSeconds)
|
||||
uiDueTime += (59 - (UINT) LocalTime.wSecond) * 1000;
|
||||
|
||||
if (uiDueTime < USER_TIMER_MINIMUM || uiDueTime > USER_TIMER_MAXIMUM)
|
||||
uiDueTime = 1000;
|
||||
else
|
||||
{
|
||||
/* Add an artificial delay of 0.05 seconds to make sure the timer
|
||||
doesn't fire too early*/
|
||||
uiDueTime += 50;
|
||||
}
|
||||
|
||||
return uiDueTime;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user