Added config to control multiple of clock resolution to run benchmark iterations for

This commit is contained in:
Phil Nash
2017-08-09 22:26:17 +01:00
parent df5c31bb19
commit eed4ae86ad
6 changed files with 16 additions and 3 deletions

View File

@@ -12,7 +12,11 @@
namespace Catch {
void BenchmarkLooper::reportStart() const {
auto BenchmarkLooper::getResolution() -> uint64_t {
return getEstimatedClockResolution() * getCurrentContext().getConfig()->benchmarkResolutionMultiple();
}
void BenchmarkLooper::reportStart() {
getResultCapture().benchmarkStarting( { m_name } );
}
auto BenchmarkLooper::needsMoreIterations() -> bool {