benchmark/bindings/python/google_benchmark
Alex Bilger 437fea4b54
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>
2024-08-16 15:32:48 +01:00
..
__init__.py Add Python bindings build using bzlmod (#1764) 2024-03-07 12:28:55 +00:00
benchmark.cc Update benchmark Python bindings for nanobind 2.0, and update to nanobind 2.0. (#1817) 2024-07-18 16:54:02 +01:00
BUILD Bump nanobind-bazel to v2.1.0, add stubgen target (#1824) 2024-07-30 15:49:33 +01:00
example.py Fix Python manual timing example (#1722) 2024-08-16 15:32:48 +01:00
version.py Add setuptools_scm for dynamic zero-config Python versioning (#1690) 2023-11-01 09:48:01 +00:00