mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
db9fa88160
The previous code for OS_Windows::get_ticks_usec() multiplied the tick count by 1000000 before dividing by ticks_per_second. The ticks is counted in a 64 bit integer and is susceptible to overflow when a machine has been running for a long period of time (days) with a high frequency timer. This PR separates the overall calculation into one for seconds and one for the remainder, removing the possibility of overflow due to the multiplier. |
||
---|---|---|
.. | ||
export | ||
app.cpp | ||
app.h | ||
context_egl_uwp.cpp | ||
context_egl_uwp.h | ||
detect.py | ||
joypad_uwp.cpp | ||
joypad_uwp.h | ||
logo.png | ||
os_uwp.cpp | ||
os_uwp.h | ||
platform_config.h | ||
SCsub | ||
thread_uwp.cpp | ||
thread_uwp.h |