mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
Use steady clock for all millis bench logging
This commit is contained in:
@@ -4267,7 +4267,7 @@ void CChainState::LoadExternalBlockFile(
|
||||
// Either both should be specified (-reindex), or neither (-loadblock).
|
||||
assert(!dbp == !blocks_with_unknown_parent);
|
||||
|
||||
int64_t nStart = GetTimeMillis();
|
||||
const auto start{SteadyClock::now()};
|
||||
|
||||
int nLoaded = 0;
|
||||
try {
|
||||
@@ -4381,7 +4381,7 @@ void CChainState::LoadExternalBlockFile(
|
||||
} catch (const std::runtime_error& e) {
|
||||
AbortNode(std::string("System error: ") + e.what());
|
||||
}
|
||||
LogPrintf("Loaded %i blocks from external file in %dms\n", nLoaded, GetTimeMillis() - nStart);
|
||||
LogPrintf("Loaded %i blocks from external file in %dms\n", nLoaded, Ticks<std::chrono::milliseconds>(SteadyClock::now() - start));
|
||||
}
|
||||
|
||||
void CChainState::CheckBlockIndex()
|
||||
|
||||
Reference in New Issue
Block a user