39 std::chrono::high_resolution_clock::time_point
_start;
43 Timer(
void ){
_start = std::chrono::high_resolution_clock::now(); }
48 std::chrono::high_resolution_clock::time_point now = std::chrono::high_resolution_clock::now();
49 std::chrono::duration< double > duration = std::chrono::duration_cast< std::chrono::duration< double > >( now -
_start );
50 return duration.count();
54 void reset(
void ){
_start = std::chrono::high_resolution_clock::now(); }
Timer(void)
Definition: timer.h:43
double elapsed(void) const
Definition: timer.h:46
void reset(void)
Definition: timer.h:54
std::chrono::high_resolution_clock::time_point _start
Definition: timer.h:39