35 t0(std::chrono::high_resolution_clock::now()),
46 elapsedSeconds = std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - t0).count();
47 return elapsedSeconds;
59 return elapsedSeconds;
63 return std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - t0).count();
72 double elapsed(std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - t0).count());
73 t0=std::chrono::high_resolution_clock::now();
84 double elapsed(std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - t0).count());
85 t0=std::chrono::high_resolution_clock::now();
86 std::cout<<
"\nReport ["<<s<<
"]: "<<elapsed<<
" s"<<std::endl;
89 std::chrono::high_resolution_clock::time_point t0;
90 double elapsedSeconds;
Timer class.
Definition: TimerC.h:28
double stop()
Timer stop.
Definition: TimerC.h:43
double get() const
Get the elapsed time.
Definition: TimerC.h:55
void report(const std::string &s)
Report.
Definition: TimerC.h:82
TimerC()
Constructor.
Definition: TimerC.h:34
double getSecondsSinceLastReport()
Get elapsed time since last report.
Definition: TimerC.h:70