diff --git a/src/test/util/common.h b/src/test/util/common.h index 591f651fbaf..2fa4cb3cfe7 100644 --- a/src/test/util/common.h +++ b/src/test/util/common.h @@ -5,8 +5,9 @@ #ifndef BITCOIN_TEST_UTIL_COMMON_H #define BITCOIN_TEST_UTIL_COMMON_H -#include +#include #include +#include #include /** @@ -27,6 +28,12 @@ private: // Make types usable in BOOST_CHECK_* @{ namespace std { +template +inline std::ostream& operator<<(std::ostream& os, const std::chrono::time_point& tp) +{ + return os << tp.time_since_epoch().count(); +} + template requires std::is_enum_v inline std::ostream& operator<<(std::ostream& os, const T& e) {