Minotaur 0.4.1
Docs for developers
Public Member Functions | Protected Attributes | List of all members
Minotaur::Timer Class Referenceabstract

#include <Timer.h>

Inheritance diagram for Minotaur::Timer:
Inheritance graph
[legend]

Public Member Functions

virtual void start ()=0
 
virtual void stop ()=0
 
virtual double query () const =0
 
virtual double wQuery () const
 

Protected Attributes

std::chrono::steady_clock::time_point w_
 
bool is_started_ = false
 

Detailed Description

The Timer class is used to measure time. A Timer can be queried only after starting and before stopping it. A Timer should always be generated through the TimerFactory::GetTimer() method because different machines may need different types of timers.

Member Function Documentation

◆ start()

virtual void Minotaur::Timer::start ( )
pure virtual

Implemented in Minotaur::ClockTimer.

◆ stop()

virtual void Minotaur::Timer::stop ( )
pure virtual

Implemented in Minotaur::ClockTimer.


The documentation for this class was generated from the following file:

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025