mirror of
https://github.com/google/benchmark.git
synced 2025-03-14 03:10:22 +08:00
added check for SetComplexityN (#248)
This commit is contained in:
parent
a0783fd7f6
commit
885ca41cf8
@ -234,6 +234,7 @@ std::vector<BenchmarkReporter::Run> ComputeBigO(
|
||||
|
||||
// Populate the accumulators.
|
||||
for (const Run& run : reports) {
|
||||
CHECK_GT(run.complexity_n, 0) << "Did you forget to call SetComplexityN?";
|
||||
n.push_back(run.complexity_n);
|
||||
real_time.push_back(run.real_accumulated_time / run.iterations);
|
||||
cpu_time.push_back(run.cpu_accumulated_time / run.iterations);
|
||||
|
Loading…
Reference in New Issue
Block a user