Fix OS X get_ticks_usec return value after #22424
This commit is contained in:
parent
3ee657e7a7
commit
d0a5ac577f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue