diff options
author | Andreas Grois <andi@grois.info> | 2018-03-21 23:16:20 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-21 23:16:20 +0100 |
commit | cca3254becdf793b9335a1f21bcda2c0909f4d1a (patch) | |
tree | 9f6f38f57774cf08e6968052a1c77dd2941dc194 /BuddhaTest/include/Helpers.h | |
parent | 0c7b45b4e84aa197ada7391007f7d1610c92476c (diff) |
Initial benchmark support.
Finally no more manual stopwatch usage...
Diffstat (limited to 'BuddhaTest/include/Helpers.h')
-rw-r--r-- | BuddhaTest/include/Helpers.h | 4 |
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[]); }; |