(GX/GEKKO/RTHREADS) scond_wait_timeout - correct Gekko codepath

This commit is contained in:
libretroadmin 2023-02-21 11:00:17 +01:00
parent 8590dd6425
commit 1440196fa0

View File

@ -855,7 +855,6 @@ bool scond_wait_timeout(scond_t *cond, slock_t *lock, int64_t timeout_us)
_ftime64_s(&now);
#elif defined(GEKKO)
/* Avoid gettimeofday due to it being reported to be broken */
struct timeval tm;
const uint64_t tickms = gettime() / TB_TIMER_CLOCK;
now.tv_sec = tickms / 1000;
now.tv_nsec = tickms * 1000;