diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-09-30 13:00:17 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-09-30 13:06:46 -0300 |
commit | d0a5ac577f5f595c059527715c001544a5b8fc61 (patch) | |
tree | ce8a6ca1b0eaf4022332c33f1dcaf007d8816bb4 | |
parent | 3ee657e7a7ffdcdb1fd46e095fef97622b99e909 (diff) |
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 |