mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-13 22:37:02 +00:00
Make it easy to build Cemu on BSD (#1632)
This commit is contained in:
parent
955ce9b973
commit
4efa40c51c
41 changed files with 167 additions and 57 deletions
|
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue