timer on windows fix