autogenu-jupyter
An automatic code generator and the continuation/GMRES (C/GMRES) based numerical solvers for nonlinear MPC
Loading...
Searching...
No Matches
cgmres::Timer Class Reference

A timer for benchmarks. More...

#include <timer.hpp>

Public Member Functions

 Timer ()
 Default constructor. More...
 
 ~Timer ()=default
 Default destructor. More...
 
void reset ()
 
void tick ()
 Start timer (tick). More...
 
void tock ()
 Stop the timer (tock). More...
 
TimingProfile getProfile () const
 Get timing result as TimingProfile. More...
 

Detailed Description

A timer for benchmarks.

Constructor & Destructor Documentation

◆ Timer()

cgmres::Timer::Timer ( )
inline

Default constructor.

◆ ~Timer()

cgmres::Timer::~Timer ( )
default

Default destructor.

Member Function Documentation

◆ getProfile()

TimingProfile cgmres::Timer::getProfile ( ) const
inline

Get timing result as TimingProfile.

Returns
Timing profile.

◆ reset()

void cgmres::Timer::reset ( )
inline

◆ tick()

void cgmres::Timer::tick ( )
inline

Start timer (tick).

◆ tock()

void cgmres::Timer::tock ( )
inline

Stop the timer (tock).


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