Page MenuHomePhabricator

util: Allow use of C++14 chrono literals
ClosedPublic

Authored by Fabien on Jan 26 2022, 08:43.

Details

Reviewers
tyler-smith
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC14edfe57f116: 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.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Jan 26 2022, 08:43
tyler-smith added a subscriber: tyler-smith.

I don't have enough familiarity here to know if this is something we want to adopt, but it appears to be implemented correctly.

This revision is now accepted and ready to land.Jan 26 2022, 09:59