SDL/src/timer
Sam Lantinga ab4156e1ac Fixed bug 1925 - SDL_GetPerformanceFrequency returns incorrect value on iOS
PoopiSan

Currently on OSX and iOS simulator the values:
mach_base_info.denom = 1
mach_base_info.numer = 1

but on the real iOS device
mach_base_info.denom = 3
mach_base_info.numer = 125

The calculation is made using following formula
mach_base_info.denom / mach_base_info.numer * 1000000

but all values are int32 and the result is casted to int64.

This solves the problem:

return 1.0 * mach_base_info.denom / mach_base_info.numer * 1000000;
2013-08-10 11:19:30 -07:00
..
beos Happy New Year! 2013-02-15 08:47:44 -08:00
dummy Happy New Year! 2013-02-15 08:47:44 -08:00
psp File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
unix Fixed bug 1925 - SDL_GetPerformanceFrequency returns incorrect value on iOS 2013-08-10 11:19:30 -07:00
windows Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION 2013-07-13 03:13:41 -07:00
SDL_timer_c.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_timer.c File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00