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();
73 double elapsed(std::chrono::duration<double>(std::chrono::high_resolution_clock::now() - t0).count());
74 t0=std::chrono::high_resolution_clock::now();
75 std::cout<<
"\nReport ["<<s<<
"]: "<<elapsed<<
" s"<<std::endl;
78 std::chrono::high_resolution_clock::time_point t0;
79 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:71
TimerC()
Constructor.
Definition: TimerC.h:34