mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Added missing include files
This commit is contained in:
parent
abec18bae0
commit
f13b3d4433
@ -34,6 +34,14 @@
|
|||||||
#include <random>
|
#include <random>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winbase.h>
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
#include <mach/mach_time.h>
|
||||||
|
#else
|
||||||
|
#include <time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef EIGEN_USE_THREADS
|
#ifdef EIGEN_USE_THREADS
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
@ -196,7 +196,7 @@ int get_random_seed() {
|
|||||||
GetSystemTime(&st);
|
GetSystemTime(&st);
|
||||||
return st.wSecond + 1000 * st.wMilliseconds;
|
return st.wSecond + 1000 * st.wMilliseconds;
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
return mach_absolute_time();
|
return static_cast<int>(mach_absolute_time());
|
||||||
#else
|
#else
|
||||||
timespec ts;
|
timespec ts;
|
||||||
clock_gettime(CLOCK_REALTIME, &ts);
|
clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user