We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b128a commit 004c064Copy full SHA for 004c064
src/utiltime.cpp
@@ -15,9 +15,12 @@
15
#include <boost/date_time/posix_time/posix_time.hpp>
16
#include <boost/thread.hpp>
17
#include <ctime>
18
+#include <thread>
19
#include <tinyformat.h>
20
21
22
+void UninterruptibleSleep(const std::chrono::microseconds& n) { std::this_thread::sleep_for(n); }
23
+
24
static std::atomic<int64_t> nMockTime(0); //!< For unit testing
25
26
src/utiltime.h
@@ -11,6 +11,8 @@
11
#include <string>
12
#include <chrono>
13
14
+void UninterruptibleSleep(const std::chrono::microseconds& n);
/**
* DEPRECATED
* Use either GetSystemTimeInSeconds (not mockable) or GetTime<T> (mockable)
0 commit comments