Merge pull request #22563 from marcelofg55/osx_usec_fix
Fix OS X get_ticks_usec return value after #22424
This commit is contained in:
commit
204d39b297
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);
|
kern_return_t ret = mach_timebase_info(&info);
|
||||||
ERR_EXPLAIN("OS CLOCK IS NOT WORKING!");
|
ERR_EXPLAIN("OS CLOCK IS NOT WORKING!");
|
||||||
ERR_FAIL_COND(ret != 0);
|
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;
|
_clock_start = mach_absolute_time() * _clock_scale;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue