Properly fix timing issue on Windows.