Fixed timer not using correct api on Windows