54 start_ = std::chrono::high_resolution_clock::now();
55 pause_ = std::chrono::high_resolution_clock::now();
63 std::chrono::duration< double, std::milli > ms;
65 else ms = std::chrono::high_resolution_clock::now() -
start_;
76 pause_ = std::chrono::high_resolution_clock::now();
86 start_ += std::chrono::high_resolution_clock::now() -
pause_;
Class used to compute response times for benchmark purposes.
std::string toString() const
Returns the delta time between now and the last reset() in a human format.
void reset()
Reset the timer.
std::chrono::duration< double, std::milli > step_() const
bool sleeping_
False if running.
std::chrono::high_resolution_clock::time_point pause_
Time of the last call to pause().
double step() const
Returns the delta time between now and the last reset() call (or the constructor).
double resume()
Resume the timer and return the delta (.
std::chrono::high_resolution_clock::time_point start_
Time of the last call to reset() or the constructor.
double pause()
Pause the timer and return the delta (.
gum is the global namespace for all aGrUM entities
std::ostream & operator<<(std::ostream &stream, const AVLTree< Val, Cmp > &tree)
display the content of a tree
Class used to compute response times for benchmark purposes.