aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/time.cpp')
-rw-r--r--src/util/time.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/time.cpp b/src/util/time.cpp
index 2589ec12a0..7b0eb8fd8e 100644
--- a/src/util/time.cpp
+++ b/src/util/time.cpp
@@ -53,6 +53,11 @@ void SetMockTime(int64_t nMockTimeIn)
nMockTime.store(nMockTimeIn, std::memory_order_relaxed);
}
+void SetMockTime(std::chrono::seconds mock_time_in)
+{
+ nMockTime.store(mock_time_in.count(), std::memory_order_relaxed);
+}
+
std::chrono::seconds GetMockTime()
{
return std::chrono::seconds(nMockTime.load(std::memory_order_relaxed));