Fix OS X get_ticks_usec return value after #22424

This commit is contained in:
Marcelo Fernandez 2018-09-30 13:00:17 -03:00
parent 3ee657e7a7
commit d0a5ac577f

View file

@ -74,7 +74,7 @@ static void _setup_clock() {
kern_return_t ret = mach_timebase_info(&info);
ERR_EXPLAIN("OS CLOCK IS NOT WORKING!");
ERR_FAIL_COND(ret != 0);
_clock_scale = (double)info.numer / (double)info.denom;
_clock_scale = ((double)info.numer / (double)info.denom) / 1000.0;
_clock_start = mach_absolute_time() * _clock_scale;
}
#else