aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-05-16 14:09:48 -0400
committerCarl Dong <contact@carldong.me>2022-07-15 11:30:47 -0400
commitbd4407817e523e3c5b347bc6be25ed007cb27034 (patch)
treeec52a13e96674053432e31f74d24765d32cb74f3 /src/util
parentc84390b741ab7b61c9f702d8b447c8cadc1257c8 (diff)
DumpMempool: Use std::chrono instead of weird int64_t arthmetics
This makes it so that DumpMempool doesn't depend on MICRO anymore
Diffstat (limited to 'src/util')
-rw-r--r--src/util/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/time.h b/src/util/time.h
index 9df69a953c..fc49f23ce3 100644
--- a/src/util/time.h
+++ b/src/util/time.h
@@ -24,6 +24,7 @@ struct NodeClock : public std::chrono::system_clock {
};
using NodeSeconds = std::chrono::time_point<NodeClock, std::chrono::seconds>;
+using SteadyClock = std::chrono::steady_clock;
using SteadySeconds = std::chrono::time_point<std::chrono::steady_clock, std::chrono::seconds>;
using SteadyMilliseconds = std::chrono::time_point<std::chrono::steady_clock, std::chrono::milliseconds>;
using SteadyMicroseconds = std::chrono::time_point<std::chrono::steady_clock, std::chrono::microseconds>;