HomePhabricator

log: Use steady clock for bench logging

Description

log: Use steady clock for bench logging

Summary:

Instead of using 0.001 and similar constants to "convert" an int64_t to milliseconds, use the type-safe Ticks<> helper. Also, use steady clock instead of system clock, since the durations are used for benchmarking.

Backport of core#26118.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D18873

Details

Provenance
MacroFake <falke.marco@gmail.com>Authored on Sep 16 2022, 15:17
FabienCommitted on Wed, Nov 5, 16:51
FabienPushed on Wed, Nov 5, 16:51
Reviewer
Restricted Project
Differential Revision
D18873: log: Use steady clock for bench logging
Parents
rABC4251281196e4: [chronik] Bump the build to c++20
Branches
Unknown
Tags
Unknown