diff options
| author | khyperia | 2020-01-27 15:43:27 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:44:23 +0100 |
| commit | 3c7e737a7bcf2d2059b1db2a5a221f76806ae8b0 (patch) | |
| tree | bcbf40fe8e4914c8ecc3a585066933bf871652c7 /src/catch2/catch_commandline.cpp | |
| parent | e880da93bd335e59a0d4b00bfcb9f06ab4b7c847 (diff) | |
| download | catch3-3c7e737a7bcf2d2059b1db2a5a221f76806ae8b0.tar.gz | |
Allow configuring of benchmark warmup time
Diffstat (limited to 'src/catch2/catch_commandline.cpp')
| -rw-r--r-- | src/catch2/catch_commandline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/catch2/catch_commandline.cpp b/src/catch2/catch_commandline.cpp index 3640a226..3c453f48 100644 --- a/src/catch2/catch_commandline.cpp +++ b/src/catch2/catch_commandline.cpp @@ -210,6 +210,9 @@ namespace Catch { | Opt( config.benchmarkNoAnalysis ) ["--benchmark-no-analysis"] ( "perform only measurements; do not perform any analysis" ) + | Opt( config.benchmarkWarmupTime, "benchmarkWarmupTime" ) + ["--benchmark-warmup-time"] + ( "amount of time in milliseconds spent on warming up each test (default: 100)" ) | Arg( config.testsOrTags, "test name|pattern|tags" ) ( "which test or tests to use" ); |