43 virtual void addResults(
const std::string& str, std::clock_t clocks) = 0;
51 const double ret = (double)((
unsigned long)
mClocks) / (
double)CLOCKS_PER_SEC;
61 void addResults(
const std::string& str, std::clock_t clocks)
override;
66 std::map<std::string, TimerResultsData>
mResults;
73 Timer(
bool fileTotal, std::string filename);
84 std::clock_t mStart = std::clock();
virtual ~TimerResultsIntf()=default
virtual void addResults(const std::string &str, std::clock_t clocks)=0
std::map< std::string, TimerResultsData > mResults
Timer & operator=(const Timer &)=delete
Timer(const Timer &)=delete