Skip to content

Commit

Permalink
Add time in ms to built-in [t]est output.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 22, 2024
1 parent e981e83 commit d4e9f33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@ void executor::read_test() const
constexpr auto hash523354 = base16_hash(
"0000000000000000002e0e763e60bde40c58aa23f295ef1919b352f3303e06a6");

const auto start = logger::now();
const auto link = query_.to_header(hash523354);
if (link.is_terminal())
{
Expand Down Expand Up @@ -1579,7 +1580,8 @@ void executor::read_test() const
return;
}

logger("Validated block 523354.");
const auto span = duration_cast<milliseconds>(logger::now() - start);
logger(format("Validated block 523354 in %1% msec.") % span.count());
}

// arbitrary testing (non-const).
Expand Down

0 comments on commit d4e9f33

Please sign in to comment.