Use steady clock for all millis bench logging

This commit is contained in:
MacroFake
2022-06-28 17:50:53 +02:00
parent ab3db34836
commit fa521c9603
8 changed files with 18 additions and 20 deletions

View File

@@ -1487,12 +1487,12 @@ void CConnman::ThreadDNSAddressSeed()
void CConnman::DumpAddresses()
{
int64_t nStart = GetTimeMillis();
const auto start{SteadyClock::now()};
DumpPeerAddresses(::gArgs, addrman);
LogPrint(BCLog::NET, "Flushed %d addresses to peers.dat %dms\n",
addrman.size(), GetTimeMillis() - nStart);
addrman.size(), Ticks<std::chrono::milliseconds>(SteadyClock::now() - start));
}
void CConnman::ProcessAddrFetch()