# native timer (for windows) with higher resolution
# tried to smooth frame rate