27 #ifndef __sot_core_stopwatch_H__ 28 #define __sot_core_stopwatch_H__ 37 #pragma GCC visibility push(default) 54 #define STOP_WATCH_MAX_NAME_LENGTH 80 156 bool performance_exists(std::string perf_name);
162 void start(std::string perf_name);
165 void stop(std::string perf_name);
168 void pause(std::string perf_name);
171 void reset(std::string perf_name);
177 void report(std::string perf_name,
int precision = 2,
178 std::ostream &output = std::cout);
181 void report_all(
int precision = 2, std::ostream &output = std::cout);
184 long double get_total_time(std::string perf_name);
187 long double get_average_time(std::string perf_name);
190 long double get_min_time(std::string perf_name);
193 long double get_max_time(std::string perf_name);
196 long double get_last_time(std::string perf_name);
200 long double get_time_so_far(std::string perf_name);
210 long double take_time();
260 #pragma GCC visibility pop
A class representing a stopwatch.
std::map< std::string, PerformanceData > * records_of
Stopwatch & getProfiler()
StopwatchException(std::string error)