Stopping timer and starting timer with the same duration
#4

1. Upon SetTimerEx, store GetTickCount() in a variable, e.g. initTime
2. Upon KillTimer, set initTime to GetTickCount()-initTime
3. Upon the next SetTimerEx, just use SetTimerEx(x, interval-initTime, ...);
Reply


Messages In This Thread
Stopping timer and starting timer with the same duration - by TheSimpleGuy - 15.05.2014, 14:27
Re: Stopping timer and starting timer with the same duration - by DaniceMcHarley - 15.05.2014, 15:38
Re: Stopping timer and starting timer with the same duration - by Campbell- - 15.05.2014, 16:15
Re: Stopping timer and starting timer with the same duration - by KingHual - 15.05.2014, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)