Filename for benchmark results can be passed via arguments

refs #269
This commit is contained in:
saschawillems 2017-08-13 11:10:41 +02:00
parent 4a237889ca
commit 94b63d83ba
2 changed files with 17 additions and 9 deletions

View file

@ -156,10 +156,17 @@ public:
bool active = false;
uint32_t iterations = 10;
uint32_t currIteration = 0;
std::string resultFile = "benchmarkresults";
std::vector<double> iterationTime;
struct FrameTimes {
double min, max, avg;
} frameTimes;
void init() {
iterationTime.resize(iterations);
frameTimes.min = std::numeric_limits<double>::max();
frameTimes.max = std::numeric_limits<double>::min();
frameTimes.avg = 0.0;
}
} benchmark;
float zoom = 0;