17 Timer(std::string rMsg,
bool rShowTime =
true);
22 Timer(std::string rMsg,
bool rShowTime,
Logger& rLogger);
32 void Reset(std::string rMsg);
39 double GetCPUTimeDifference()
const;
Timer & operator=(const Timer &)=delete
Logger * mLogger
Definition: Timer.h:45
prints the lifetime of a Timer object on destruction
Definition: Timer.h:11
bool mShowTime
Definition: Timer.h:44
void Reset()
Definition: Timer.cpp:41
static constexpr int mMinOutputLength
Definition: Timer.h:51
~Timer()
dtor, prints the msg and the lifetime
Definition: Timer.cpp:36
std::string mMsg
Definition: Timer.h:43
std::chrono::time_point< std::chrono::system_clock > mWallTimeInit
Definition: Timer.h:53
logger class for redirecting output to different locations/files
Definition: Logger.h:12
Definition: Exception.h:6
Timer(std::string rMsg, bool rShowTime=true)
ctor, saves the current time
Definition: Timer.cpp:14
double GetTimeDifference() const
returns the time from ctor to now in seconds
Definition: Timer.cpp:83