aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-09-16 10:49:40 +0100
committerfanquake <fanquake@gmail.com>2022-09-16 11:10:15 +0100
commit08785aa75bf04f229230b756dd9801aaedf76752 (patch)
treea61eefcab687362679e5d08d237cb43b6224b734 /src/rpc
parent1d6c605165d6dd8896151dbd2b9e67a07788dae2 (diff)
parentfa521c960337a65d4ce12cd1ef009c652ffe57e6 (diff)
downloadbitcoin-08785aa75bf04f229230b756dd9801aaedf76752.tar.xz
Merge bitcoin/bitcoin#25499: Use steady clock for all millis bench logging
fa521c960337a65d4ce12cd1ef009c652ffe57e6 Use steady clock for all millis bench logging (MacroFake) Pull request description: Currently `GetTimeMillis` is used for bench logging in milliseconds integral precision. Replace it to use a steady clock that is type-safe and steady. Microsecond or float precision can be done in a follow-up. ACKs for top commit: fanquake: ACK fa521c960337a65d4ce12cd1ef009c652ffe57e6 - started making the same change. Tree-SHA512: 86a810e496fc663f815acb8771a6c770331593715cde85370226685bc50c13e8e987e3c5efd0b4e48b36ebd2372255357b709204bac750d41e94a9f7d9897fa6
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/server.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index e9987d73be..83a352dbea 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -21,8 +21,6 @@
#include <mutex>
#include <unordered_map>
-using SteadyClock = std::chrono::steady_clock;
-
static GlobalMutex g_rpc_warmup_mutex;
static std::atomic<bool> g_rpc_running{false};
static bool fRPCInWarmup GUARDED_BY(g_rpc_warmup_mutex) = true;