diff --git a/src/utiltime.cpp b/src/utiltime.cpp index 467d2553624..e926cf3811d 100644 --- a/src/utiltime.cpp +++ b/src/utiltime.cpp @@ -13,9 +13,13 @@ #include #include #include +#include +#include using namespace std; +void UninterruptibleSleep(const std::chrono::microseconds& n) { std::this_thread::sleep_for(n); } + static std::atomic nMockTime(0); //!< For testing int64_t GetTime() diff --git a/src/utiltime.h b/src/utiltime.h index 3fe1781a40c..cd8f2006887 100644 --- a/src/utiltime.h +++ b/src/utiltime.h @@ -9,6 +9,9 @@ #include #include +#include + +void UninterruptibleSleep(const std::chrono::microseconds& n); /** * GetTimeMicros() and GetTimeMillis() both return the system time, but in