changed complexity_n to int and fix some whitespaces

This commit is contained in:
Ismael 2016-06-02 23:27:29 +02:00
parent 8ba94b4c18
commit 2859ae9394
2 changed files with 5 additions and 5 deletions

View File

@ -363,7 +363,7 @@ public:
// family benchmark, then current benchmark will be part of the computation and complexity_n will
// represent the length of N.
BENCHMARK_ALWAYS_INLINE
void SetComplexityN(size_t complexity_n) {
void SetComplexityN(int complexity_n) {
complexity_n_ = complexity_n;
}
@ -444,7 +444,7 @@ private:
size_t bytes_processed_;
size_t items_processed_;
size_t complexity_n_;
int complexity_n_;
public:
// FIXME: Make this private somehow.

View File

@ -87,7 +87,7 @@ class BenchmarkReporter {
// Keep track of arguments to compute asymptotic complexity
BigO complexity;
BigOFunc* complexity_lambda;
size_t complexity_n;
int complexity_n;
// Inform print function whether the current run is a complexity report
bool report_big_o;
@ -133,14 +133,14 @@ class BenchmarkReporter {
error_stream_ = err;
}
std::ostream& GetOutputStream() const {
std::ostream& GetOutputStream() const {
return *output_stream_;
}
std::ostream& GetErrorStream() const {
return *error_stream_;
}
virtual ~BenchmarkReporter();
// Write a human readable string to 'out' representing the specified