mirror of
https://github.com/simple64/simple64.git
synced 2026-11-01 20:21:52 +01:00
update parallel rdp
This commit is contained in:
1 parent
1f7414444d
commit
dc27483cc9
35 files changed
+4001
-1071
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user