1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Improve benchmark output

This commit is contained in:
Daniel Evans 2016-04-20 21:25:48 +01:00
parent 61b47192c1
commit 4fc177d98a

View File

@ -64,7 +64,8 @@ void BenchmarkState::exit()
<< "Benchmark: " << benchfile << "\n"
<< "Frames: " << frameCounter << "\n"
<< "Duration: " << duration << " seconds\n"
<< "Avg FPS: " << (frameCounter/duration) << std::endl;
<< "Avg frametime: " << std::setprecision(3) << (duration/frameCounter)
<< " (" << (frameCounter/duration) << " fps)" << std::endl;
}
void BenchmarkState::tick(float dt)