Public Types | Public Member Functions | Public Attributes | List of all members
aruco::Timer Struct Reference

#include <timers.h>

Public Types

enum  SCALE { NSEC, MSEC, SEC }
 

Public Member Functions

void end ()
 
double getAverage (SCALE sc=MSEC) const
 
void print (SCALE sc=MSEC)
 
void setName (std::string name)
 
void start ()
 
 Timer ()
 
 Timer (std::string name)
 

Public Attributes

std::string _name
 
std::chrono::high_resolution_clock::time_point _s
 
double n = 0
 
double sum = 0
 

Detailed Description

Definition at line 182 of file timers.h.

Member Enumeration Documentation

◆ SCALE

Enumerator
NSEC 
MSEC 
SEC 

Definition at line 184 of file timers.h.

Constructor & Destructor Documentation

◆ Timer() [1/2]

aruco::Timer::Timer ( )
inline

Definition at line 194 of file timers.h.

◆ Timer() [2/2]

aruco::Timer::Timer ( std::string  name)
inline

Definition at line 198 of file timers.h.

Member Function Documentation

◆ end()

void aruco::Timer::end ( )
inline

Definition at line 209 of file timers.h.

◆ getAverage()

double aruco::Timer::getAverage ( SCALE  sc = MSEC) const
inline

Definition at line 243 of file timers.h.

◆ print()

void aruco::Timer::print ( SCALE  sc = MSEC)
inline

Definition at line 216 of file timers.h.

◆ setName()

void aruco::Timer::setName ( std::string  name)
inline

Definition at line 201 of file timers.h.

◆ start()

void aruco::Timer::start ( )
inline

Definition at line 205 of file timers.h.

Member Data Documentation

◆ _name

std::string aruco::Timer::_name

Definition at line 193 of file timers.h.

◆ _s

std::chrono::high_resolution_clock::time_point aruco::Timer::_s

Definition at line 191 of file timers.h.

◆ n

double aruco::Timer::n = 0

Definition at line 192 of file timers.h.

◆ sum

double aruco::Timer::sum = 0

Definition at line 192 of file timers.h.


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


aruco
Author(s): Rafael Muñoz Salinas , Bence Magyar
autogenerated on Sat Sep 23 2023 02:26:45