Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
timer Struct Reference

#include <helpers.h>

Public Types

using Clock = std::chrono::high_resolution_clock
 
using Time = Clock::time_point
 

Public Member Functions

double elapsed () const
 
void restart ()
 
 timer ()
 

Private Member Functions

Time curTime () const
 

Private Attributes

Time _start_time
 

Detailed Description

Definition at line 128 of file helpers.h.

Member Typedef Documentation

◆ Clock

using timer::Clock = std::chrono::high_resolution_clock

Definition at line 130 of file helpers.h.

◆ Time

using timer::Time = Clock::time_point

Definition at line 131 of file helpers.h.

Constructor & Destructor Documentation

◆ timer()

timer::timer ( )
inline

Definition at line 133 of file helpers.h.

Member Function Documentation

◆ curTime()

Time timer::curTime ( ) const
inlineprivate

Definition at line 142 of file helpers.h.

◆ elapsed()

double timer::elapsed ( ) const
inline

Definition at line 135 of file helpers.h.

◆ restart()

void timer::restart ( )
inline

Definition at line 134 of file helpers.h.

Member Data Documentation

◆ _start_time

Time timer::_start_time
private

Definition at line 145 of file helpers.h.


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


libnabo
Author(s): Stéphane Magnenat
autogenerated on Mon Feb 28 2022 22:41:38