wallet: Use steady clock to measure scanning duration

This commit is contained in:
MarcoFalke
2023-04-03 10:37:44 +02:00
parent fa97621804
commit fa2c099cec
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ static RPCHelpMan getwalletinfo()
obj.pushKV("avoid_reuse", pwallet->IsWalletFlagSet(WALLET_FLAG_AVOID_REUSE));
if (pwallet->IsScanning()) {
UniValue scanning(UniValue::VOBJ);
scanning.pushKV("duration", pwallet->ScanningDuration() / 1000);
scanning.pushKV("duration", Ticks<std::chrono::seconds>(pwallet->ScanningDuration()));
scanning.pushKV("progress", pwallet->ScanningProgress());
obj.pushKV("scanning", scanning);
} else {