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
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
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()