mirror of
https://github.com/yawut/SDL.git
synced 2026-04-14 12:55:50 -05:00
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; |
||
|---|---|---|
| .. | ||
| beos | ||
| dummy | ||
| psp | ||
| unix | ||
| windows | ||
| SDL_timer_c.h | ||
| SDL_timer.c | ||