aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.h
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2020-02-21 09:19:57 -0800
committerMarcoFalke <[email protected]>2020-02-21 09:49:37 -0800
commitfa4620be782c2bf6b5ffddf4f671194fdd1536f3 (patch)
tree38abb4235c76ec658fc4c23360fc4e66975041c3 /src/util/time.h
parentMerge #18037: Util: Allow scheduler to be mocked (diff)
downloaddiscoin-fa4620be782c2bf6b5ffddf4f671194fdd1536f3.tar.xz
discoin-fa4620be782c2bf6b5ffddf4f671194fdd1536f3.zip
util: Add UnintrruptibleSleep
Diffstat (limited to 'src/util/time.h')
-rw-r--r--src/util/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/time.h b/src/util/time.h
index af4390aa1..445ca3acb 100644
--- a/src/util/time.h
+++ b/src/util/time.h
@@ -10,6 +10,8 @@
#include <string>
#include <chrono>
+void UninterruptibleSleep(const std::chrono::microseconds& n);
+
/**
* Helper to count the seconds of a duration.
*