diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-10 07:56:01 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-10 07:56:06 +0200 |
commit | fb7c12c26f57784c6db589939103237173adb533 (patch) | |
tree | 58f4950ee30353f4609c60d43e297d76c2630ce6 /src/scheduler.cpp | |
parent | 967654d0792f8ee44da3bd747b005071804da3d6 (diff) | |
parent | fa4fb8d98b7e8e5ea2db35bf239fa7f248da5d8e (diff) |
Merge bitcoin/bitcoin#24921: Add time helpers for std::chrono::steady_clock and FastRandomContext::rand_uniform_delay
fa4fb8d98b7e8e5ea2db35bf239fa7f248da5d8e random: Add FastRandomContext::rand_uniform_delay (MarcoFalke)
faa5c62967174f1dd66e8a4ba61ab29c867cf450 Add time helpers for std::chrono::steady_clock (MarcoFalke)
Pull request description:
A steady clock can be used in the future for the scheduler, for example.
A random uniform delay applied to a time point can be used in the future for time points passed to the scheduler, or delays in net processing.
Currently they are unused outside of tests, but if they turn out unused in the future (unlikely), they can trivially be removed again. I am splitting them out, so that several branches/pulls can build on top of them without duplicating the commits.
ACKs for top commit:
ajtowns:
ACK fa4fb8d98b7e8e5ea2db35bf239fa7f248da5d8e
Tree-SHA512: 2c37174468fe84b1cdf2a032f458706df44b99a5f99062417bb42078b6f69e2f1738d20c21cd9386ca5a35f3bc0583e547ba40168c66f6aa42f700ba35dd95d4
Diffstat (limited to 'src/scheduler.cpp')
0 files changed, 0 insertions, 0 deletions