mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge bitcoin/bitcoin#24697: refactor address relay time
fa64dd6673refactor: Use type-safe std::chrono for addrman time (MarcoFalke)fa2ae373f3Add type-safe AdjustedTime() getter to timedata (MarcoFalke)fa5103a9f5Add ChronoFormatter to serialize (MarcoFalke)fa253d385futil: Add HoursDouble (MarcoFalke)fa21fc60c2scripted-diff: Rename addrman time symbols (MarcoFalke)fa9284c3e9refactor: Remove not needed std::max (MacroFake) Pull request description: Those refactors are overlapping with, but otherwise largely unrelated to #24662. ACKs for top commit: naumenkogs: utACKfa64dd6673dergoegge: Code review ACKfa64dd6673Tree-SHA512: a50625e78036e7220a11997e6d9b6c6b317cb38ce02b1835fb41cbee2d8bfb1faf29b29d8990be78d6b5e15e9a9d8dec33bf25fa439b47610ef708950969724b
This commit is contained in:
@@ -55,6 +55,7 @@ constexpr int64_t count_seconds(std::chrono::seconds t) { return t.count(); }
|
||||
constexpr int64_t count_milliseconds(std::chrono::milliseconds t) { return t.count(); }
|
||||
constexpr int64_t count_microseconds(std::chrono::microseconds t) { return t.count(); }
|
||||
|
||||
using HoursDouble = std::chrono::duration<double, std::chrono::hours::period>;
|
||||
using SecondsDouble = std::chrono::duration<double, std::chrono::seconds::period>;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user