Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/TestScripts/testConfigureDisableStringification.py
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-08-31 21:52:08 +0200
committerMartin Hořeňovský2023-09-08 10:04:31 +0200
commit47a2c969380259e899f471edde84f06a6d687dc9 (patch)
tree28bfe7778e7a4e278f2ba093a7928301f5e3760d /tests/TestScripts/testConfigureDisableStringification.py
parentfb96279aedc7472326189823078299abb2dad9a4 (diff)
downloadcatch3-47a2c969380259e899f471edde84f06a6d687dc9.tar.gz
Reduce the number of templates in Benchmarking
The basic idea was to reduce the number of things dependent on the `Clock` type. To that end, I replaced `Duration<Clock>` with `IDuration` typedef for `std::nanoseconds`, and `FloatDuration<Clock>` with `FDuration` typedef for `Duration<double, std::nano>`. We can generally assume that any clock's duration can be expressed in nanoseconds, as long as we insert `duration_cast`s into the right places. Note that we cannot remove all dependence on `Clock` as a template arguments, because functions that actually measure the elapsed time have to use the Clock. We also changed some template function arguments to pass plain function pointers, so that the actual implementation can be placed into a cpp file.
Diffstat (limited to 'tests/TestScripts/testConfigureDisableStringification.py')
0 files changed, 0 insertions, 0 deletions