Go to the documentation of this file.
13 currentStarts.clear();
20 currentStarts[tag] = Clock::now();
28 auto it = currentStarts.find(tag);
29 if (it == currentStarts.end())
37 Stats& stats = statsMap[tag];
57 os <<
"Total number of executions: " << stats.
numExecutions << std::endl;
66 for (
auto it : stats.statsMap)
68 os <<
"== Stats for '" << it.first <<
"' ==" << std::endl;
std::chrono::time_point< Clock > TimePoint
Duration latestExecutionTime
std::size_t numExecutions
Duration totalExecutionTime
const Stats & getStats(const std::string &tag)
void stop(const std::string &tag)
std::chrono::duration< float > Duration
std::ostream & operator<<(std::ostream &os, const Stats &stats)
Duration averageExecutionTime
void start(const std::string &tag)