From cca3254becdf793b9335a1f21bcda2c0909f4d1a Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Wed, 21 Mar 2018 23:16:20 +0100 Subject: Initial benchmark support. Finally no more manual stopwatch usage... --- BuddhaTest/include/Helpers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'BuddhaTest/include/Helpers.h') diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h index b4954c0..2b0ea88 100644 --- a/BuddhaTest/include/Helpers.h +++ b/BuddhaTest/include/Helpers.h @@ -14,6 +14,8 @@ namespace Helpers void WriteOutputPNG(const std::string& path, const std::vector& data, unsigned int width, unsigned int bufferHeight, double gamma, double colorScale); + void PrintBenchmarkScore(const std::vector& data); + /** Wraps around a C file descriptor. Libpng could be taught to use C++ streams, but I'm too lazy and rather wrap this ugly thing up, so it gets cleaned... */ class ScopedCFileDescriptor { @@ -56,6 +58,8 @@ namespace Helpers unsigned int ignoreMaxBufferSize = 0; unsigned int printDebugOutput = 0; + unsigned int benchmarkTime = 0; + bool CheckValidity(); bool ParseCommandLine(int argc, char * argv[]); }; -- cgit v1.2.3