diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-09-30 18:55:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 18:55:13 +0200 |
commit | 204d39b297a71fd43827828e6bc1818284393ed9 (patch) | |
tree | ce8a6ca1b0eaf4022332c33f1dcaf007d8816bb4 | |
parent | 3ee657e7a7ffdcdb1fd46e095fef97622b99e909 (diff) | |
parent | d0a5ac577f5f595c059527715c001544a5b8fc61 (diff) |
Merge pull request #22563 from marcelofg55/osx_usec_fix
Fix OS X get_ticks_usec return value after #22424
-rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index 7d3e6b412c..6c70934bc6 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -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 |