update parallel rdp

This commit is contained in:
Logan McNaughton committed 2022-12-07 18:11:41 -07:00
1 parent 1f7414444d
commit dc27483cc9
35 files changed
+4001 -1071

No files matched your search

+6 -1
View File
@@ -107,7 +107,12 @@ int64_t get_current_time_nsecs()
return int64_t(double(li.QuadPart) * static_qpc_freq.inv_freq);
#else
struct timespec ts = {};
if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts) < 0)
#ifdef ANDROID
constexpr auto timebase = CLOCK_MONOTONIC;
#else
constexpr auto timebase = CLOCK_MONOTONIC_RAW;
#endif
if (clock_gettime(timebase, &ts) < 0)
return 0;
return ts.tv_sec * 1000000000ll + ts.tv_nsec;
#endif