godot/platform
lawnjelly b330766c30 Fix overflow condition with QueryPerformanceCounter
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.

(cherry picked from commit db9fa88160)
2020-06-11 09:40:04 +02:00
..
android SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
haiku SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
iphone SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
javascript SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
osx SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
server SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
uwp Fix overflow condition with QueryPerformanceCounter 2020-06-11 09:40:04 +02:00
windows Fix overflow condition with QueryPerformanceCounter 2020-06-11 09:40:04 +02:00
x11 SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
register_platform_apis.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00