aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/include/Helpers.h
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-21 23:16:20 +0100
committerAndreas Grois <andi@grois.info>2018-03-21 23:16:20 +0100
commitcca3254becdf793b9335a1f21bcda2c0909f4d1a (patch)
tree9f6f38f57774cf08e6968052a1c77dd2941dc194 /BuddhaTest/include/Helpers.h
parent0c7b45b4e84aa197ada7391007f7d1610c92476c (diff)
Initial benchmark support.
Finally no more manual stopwatch usage...
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r--BuddhaTest/include/Helpers.h4
1 files changed, 4 insertions, 0 deletions
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<uint32_t>& data, unsigned int width, unsigned int bufferHeight, double gamma, double colorScale);
+ void PrintBenchmarkScore(const std::vector<uint32_t>& 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[]);
};