HomePhabricator

util: Allow use of C++14 chrono literals

Description

util: Allow use of C++14 chrono literals

Summary:

I think we should allow the use of chrono literals for new code to make it less verbose. Obviously old code can stay as-is.

This patch pulls in the needed namespace and replaces some lines for illustrative purposes.

Backport of core#20602.

Ref T1696.

Test Plan:

ninja all check-all

Build for Windows.

Reviewers: #bitcoin_abc, tyler-smith

Reviewed By: #bitcoin_abc, tyler-smith

Subscribers: tyler-smith

Maniphest Tasks: T1696

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Dec 8 2020, 15:49
FabienCommitted on Jan 26 2022, 10:22
FabienPushed on Jan 26 2022, 10:22
Reviewer
Restricted Project
Differential Revision
D10901: util: Allow use of C++14 chrono literals
Parents
rABC7bb25596e59f: Handle rename failure in DumpMempool(...) by using RenameOver(...) return value
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task