Minotaur 0.4.1
Docs for developers
Public Member Functions | List of all members
Minotaur::ClockTimer Class Reference

#include <Timer.h>

Inheritance diagram for Minotaur::ClockTimer:
Inheritance graph
[legend]
Collaboration diagram for Minotaur::ClockTimer:
Collaboration graph
[legend]

Public Member Functions

void start ()
 Start the timer. More...
 
void stop ()
 Stop the timer. Can not query after this. More...
 
double query () const
 
- Public Member Functions inherited from Minotaur::Timer
virtual void start ()=0
 
virtual void stop ()=0
 
virtual double query () const =0
 
virtual double wQuery () const
 

Additional Inherited Members

- Protected Attributes inherited from Minotaur::Timer
std::chrono::steady_clock::time_point w_
 
bool is_started_ = false
 

Detailed Description

The default timer when getrusage() function is not defined. Uses clock() to get time.

Member Function Documentation

◆ query()

double Minotaur::ClockTimer::query ( ) const
inlinevirtual

Implements Minotaur::Timer.

◆ start()

void Minotaur::ClockTimer::start ( )
inlinevirtual

Start the timer.

Implements Minotaur::Timer.

◆ stop()

void Minotaur::ClockTimer::stop ( )
inlinevirtual

Stop the timer. Can not query after this.

Implements Minotaur::Timer.


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