catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix error when period of steady_clock is not nano
- Commit
fa6d52e2a344bb7be7ab03b38ffb3c193be3a84e- Author
- cericks0n ·
- Committer
- GitHub
- Parents
5ac348cd6e78
Changes
include/internal/benchmark/catch_benchmark.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/benchmark/catch_benchmark.hpp b/include/internal/benchmark/catch_benchmark.hpp index 3c061210..d9887eba 100644 --- a/include/internal/benchmark/catch_benchmark.hpp +++ b/include/internal/benchmark/catch_benchmark.hpp @@ -79,7 +79,7 @@ namespace Catch { }); auto analysis = Detail::analyse(*cfg, env, samples.begin(), samples.end()); - BenchmarkStats<std::chrono::duration<double, std::nano>> stats{ info, analysis.samples, analysis.mean, analysis.standard_deviation, analysis.outliers, analysis.outlier_variance }; + BenchmarkStats<FloatDuration<Clock>> stats{ info, analysis.samples, analysis.mean, analysis.standard_deviation, analysis.outliers, analysis.outlier_variance }; getResultCapture().benchmarkEnded(stats); } CATCH_CATCH_ALL{