mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 08:17:22 +00:00
[SYSSETUP][TIMEDATE] Use exact setTimer() timeouts, to stay in sync (#3355)
CORE-13121
This commit is contained in:
parent
53005587f4
commit
4cd92f0d01
5 changed files with 42 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue