Fixed generic clock  bugged on windows

problem : the accumation sometimes accumulate 0 instead of 1 or 2 (cause
the time resolution on windows is not accurate and the refresh is too
speed and the clock is restarted. I fixed that, it's not beautifull but
that's should work.