Make it easy to build Cemu on BSD (#1632)

This commit is contained in:
Kevin Reinholz 2025-07-22 23:59:09 -07:00 committed by GitHub
parent 955ce9b973
commit 4efa40c51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 167 additions and 57 deletions

View file

@ -9,6 +9,10 @@ uint32_t GetTickCount()
return (1000 * ts.tv_sec + ts.tv_nsec / 1000000);
#elif BOOST_OS_MACOS
return clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW) / 1000000;
#elif BOOST_OS_BSD
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (1000 * ts.tv_sec + ts.tv_nsec / 1000000);
#endif
}
}