diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-12 10:04:18 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-12 10:04:54 +0200 |
commit | dd9f61a184d4d395591ee3e9f1e839473e88ffd0 (patch) | |
tree | 9b95e2730f4468a3be0850218fd4ce217ad433b0 /test | |
parent | e3bab43329e78e93e13b8f55330b183c3a3c954e (diff) | |
parent | fab9e8a29c2cdeab6cf1ae7c1fc0e0a3af783b17 (diff) | |
download | bitcoin-dd9f61a184d4d395591ee3e9f1e839473e88ffd0.tar.xz |
Merge bitcoin/bitcoin#25102: Remove unused GetTimeSeconds
fab9e8a29c2cdeab6cf1ae7c1fc0e0a3af783b17 Remove unused GetTimeSeconds (MacroFake)
Pull request description:
Seems confusing to have this helper when it is possible to get the system time in a type-safe way by simply calling `std::chrono::system_clock::now` (C++11).
This patch replaces `GetTimeSeconds` and removes it:
* in `bitcoin-cli.cpp` by `system_clock`
* in `test/fuzz/fuzz.cpp` by `steady_clock`
ACKs for top commit:
laanwj:
Code review ACK fab9e8a29c2cdeab6cf1ae7c1fc0e0a3af783b17
naumenkogs:
ACK fab9e8a29c2cdeab6cf1ae7c1fc0e0a3af783b17
Tree-SHA512: 517e300b0baf271cfbeebd4a0838871acbea9360f9dd23572a751335c20c1ba261b1b5ee0aec8a36abd20c94fab83ce94f46042745279aca1f0ca2f885a03b6e
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions