Struct Timer

Struct Documentation

struct Timer

Public Types

enum SCALE

Values:

enumerator NSEC
enumerator MSEC
enumerator SEC

Public Functions

inline Timer()
inline Timer(std::string name)
inline void setName(std::string name)
inline void start()
inline void end()
inline void print(SCALE sc = MSEC)
inline double getAverage(SCALE sc = MSEC) const

Public Members

std::chrono::high_resolution_clock::time_point _s
double sum = 0
double n = 0
std::string _name