10 #ifndef AVERAGE_TIMING
11 #define AVERAGE_TIMING
31 :
val(averageNumValues, 0.0f),
61 static void start(
const std::string& name);
63 static void stop(
const std::string& name);
65 static float getTime(
const std::string& name);
67 static float getTime(
const std::vector<std::string>& names);
80 void doStart(
const std::string& name);
82 void doStop(
const std::string& name);
86 float doGetTime(
const std::vector<std::string>& names)
const;
96 #define AVERAGE_TIMING_START(name) Utils::AverageTiming::start(name)
97 #define AVERAGE_TIMING_STOP(name) Utils::AverageTiming::stop(name)
High Resolution Timer class using C++11.
Singleton timing class for average measurement of different timing blocks in loops.
static float getTime(const std::string &name)
get time for block with name
void doStart(const std::string &name)
do start timer for a new or existing block
static void stop(const std::string &name)
stop timer for a running block with name
void doGetTimingMessage(char *m)
do get timings formatted via string
static AverageTiming & instance()
singleton
float doGetTime(const std::string &name)
do get time for block with name
void doStop(const std::string &name)
do stop timer for a running block with name
static void getTimingMessage(char *m)
get timings formatted via string
static void start(const std::string &name)
start timer for a new or existing block
Utils provides utilities for string & file handling, logging and math functions.
concatenation of average value and timer
AverageTimingBlock(int averageNumValues, std::string name, int posV, int posH)