diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-11-08 08:32:54 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-11-08 08:33:07 +0100 |
| commit | 5776582b7f3efc9af1c35b68a51bd2c83b848a32 (patch) | |
| tree | 91db60d78f0bab96dee2bec752f39c7531039810 /src/script/script_error.cpp | |
| parent | Merge #11389: Support having SegWit always active in regtest (sipa, ajtowns, ... (diff) | |
| parent | bench: prefer a steady clock if the resolution is no worse (diff) | |
| download | discoin-5776582b7f3efc9af1c35b68a51bd2c83b848a32.tar.xz discoin-5776582b7f3efc9af1c35b68a51bd2c83b848a32.zip | |
Merge #11562: bench: use std::chrono rather than gettimeofday
24a0bdd bench: prefer a steady clock if the resolution is no worse (Cory Fields)
c515d26 bench: switch to std::chrono for time measurements (Cory Fields)
Pull request description:
gettimeofday has portability issues, see for example #11558.
Regardless of large-scale clock refactors in the future, I think it's fine for bench to just use std::chrono itself.
Note that this may slightly improve bench accuracy and changes the display from tiny floats to nanosecond counts instead.
Tree-SHA512: 122355456d01ec6cfcf6867991715cf3a95eabbf5a4f2adc26a059b50382ffb318b7639cdd575197fc4ee5be8b967c0404f1f920d6f5bd4ddd0bd63b5e5c5632
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions