test: Introduce MockableSteadyClock::mock_time_point and ElapseSteady helper

This refactor clarifies that the MockableSteadyClock::mock_time_point
has millisecond precision by defining a type an using it.

Moreover, a ElapseSteady helper is added which can be re-used easily.
This commit is contained in:
MarcoFalke
2025-03-28 10:06:25 +01:00
parent faf2d512c5
commit fa9c38794e
5 changed files with 34 additions and 4 deletions

5
src/test/util/time.cpp Normal file
View File

@@ -0,0 +1,5 @@
// Copyright (c) The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/util/time.h>