aboutsummaryrefslogtreecommitdiff
path: root/cmake/std_regex.cpp
diff options
context:
space:
mode:
authorAlex Bilger <alxbilger@users.noreply.github.com>2024-08-16 16:32:48 +0200
committerGitHub <noreply@github.com>2024-08-16 15:32:48 +0100
commit437fea4b549a449ac319618552981cb328f1aaf4 (patch)
treea5557739e2a8b62fcc00edf060554e9e0636c8f6 /cmake/std_regex.cpp
parentec3dc37b6035aa5431ea60aa1d54fdc5f82ec701 (diff)
downloadgoogle-benchmark-437fea4b549a449ac319618552981cb328f1aaf4.tar.gz
google-benchmark-437fea4b549a449ac319618552981cb328f1aaf4.zip
Fix Python manual timing example (#1722)
According to the user guide, when manual timing, it is necessary to explicit it by using the `UseManualTime` function. Its equivalent in Python is use_manual_time(). This function was not called in the example. It is possible to verify that the use of this function has an impact on the measure by adding another `time.sleep(0.01)` at the end of the iteration. There is a x2 difference depending on whether `use_manual_time()` is used or not. Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
Diffstat (limited to 'cmake/std_regex.cpp')
0 files changed, 0 insertions, 0 deletions