Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new
- start_tick,
- start_tick_diff;
- // somewhere
- start_tick = GetTickCount();
- start_tick_diff = cellmax - start_tick;
- // elsewhere
- new
- diff = GetTickCount() - start_tick;
- if (diff < 0)
- {
- diff += start_tick_diff;
- }
- // do the rest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement