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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-04-20 20:56:48 +0200
committerMartin Hořeňovský2023-05-01 13:21:33 +0200
commitf3c678c0ab2afd5511d6ea4ff82ad3c5349312c0 (patch)
treef91562cfae7f59e72544841e924ff6d00f637dbe /src/catch2
parent46539b6d9b1d429fcc2261d3e687482c878a9ddb (diff)
downloadcatch3-f3c678c0ab2afd5511d6ea4ff82ad3c5349312c0.tar.gz
Constexprify constants in estimate_clock.hpp
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/benchmark/detail/catch_estimate_clock.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/catch2/benchmark/detail/catch_estimate_clock.hpp b/src/catch2/benchmark/detail/catch_estimate_clock.hpp
index 907773f2..fb65450e 100644
--- a/src/catch2/benchmark/detail/catch_estimate_clock.hpp
+++ b/src/catch2/benchmark/detail/catch_estimate_clock.hpp
@@ -41,15 +41,15 @@ namespace Catch {
return deltas;
}
- const auto warmup_iterations = 10000;
- const auto warmup_time = std::chrono::milliseconds(100);
- const auto minimum_ticks = 1000;
- const auto warmup_seed = 10000;
- const auto clock_resolution_estimation_time = std::chrono::milliseconds(500);
- const auto clock_cost_estimation_time_limit = std::chrono::seconds(1);
- const auto clock_cost_estimation_tick_limit = 100000;
- const auto clock_cost_estimation_time = std::chrono::milliseconds(10);
- const auto clock_cost_estimation_iterations = 10000;
+ constexpr auto warmup_iterations = 10000;
+ constexpr auto warmup_time = std::chrono::milliseconds(100);
+ constexpr auto minimum_ticks = 1000;
+ constexpr auto warmup_seed = 10000;
+ constexpr auto clock_resolution_estimation_time = std::chrono::milliseconds(500);
+ constexpr auto clock_cost_estimation_time_limit = std::chrono::seconds(1);
+ constexpr auto clock_cost_estimation_tick_limit = 100000;
+ constexpr auto clock_cost_estimation_time = std::chrono::milliseconds(10);
+ constexpr auto clock_cost_estimation_iterations = 10000;
template <typename Clock>
int warmup() {