26#ifndef TESSERACT_COMMON_TIMER_H
27#define TESSERACT_COMMON_TIMER_H
39 using Clock = std::chrono::high_resolution_clock;
64 return std::chrono::duration<double, std::milli>(Clock::now() -
start_time_).count();
A simple timer class leveraging chrono high resolution clock.
Definition: timer.h:38
void stop()
Stop the timer.
Definition: timer.h:50
std::chrono::time_point< Clock > end_time_
Definition: timer.h:78
std::chrono::high_resolution_clock Clock
Definition: timer.h:39
double elapsedMilliseconds() const
Get the elapsed time in milliseconds.
Definition: timer.h:61
void start()
Start the timer.
Definition: timer.h:43
std::chrono::time_point< Clock > start_time_
Definition: timer.h:77
double elapsedSeconds() const
Get the elapsed time in seconds.
Definition: timer.h:74
bool running_
Definition: timer.h:79
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: allowed_collision_matrix.h:16