Main MRPT website > C++ reference for MRPT 1.3.2
List of all members | Public Member Functions | Private Attributes
mrpt::utils::CTicTac Class Reference

Detailed Description

This class implements a high-performance stopwatch.

Typical resolution is about 1e-6 seconds.

Note
The class is named after the Spanish equivalent of "Tic-Toc" ;-)

Definition at line 24 of file CTicTac.h.

#include <mrpt/utils/CTicTac.h>

Inheritance diagram for mrpt::utils::CTicTac:
Inheritance graph

Public Member Functions

 CTicTac ()
 Default constructor. More...
 
virtual ~CTicTac ()
 Destructor. More...
 
void Tic ()
 Starts the stopwatch. More...
 
double Tac ()
 Stops the stopwatch. More...
 

Private Attributes

unsigned char largeInts [64]
 

Constructor & Destructor Documentation

§ CTicTac()

mrpt::utils::CTicTac::CTicTac ( )

Default constructor.

§ ~CTicTac()

virtual mrpt::utils::CTicTac::~CTicTac ( )
virtual

Destructor.

Member Function Documentation

§ Tac()

double mrpt::utils::CTicTac::Tac ( )

Stops the stopwatch.

Returns
Returns the ellapsed time in seconds.
See also
Tic

Referenced by mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment(), and mrpt::graphs::CAStarAlgorithm< T >::getOptimalSolution().

§ Tic()

void mrpt::utils::CTicTac::Tic ( )

Member Data Documentation

§ largeInts

unsigned char mrpt::utils::CTicTac::largeInts[64]
private

Definition at line 27 of file CTicTac.h.




Page generated by Doxygen 1.8.12 for MRPT 1.3.2 SVN: at Mon Oct 3 19:22:36 UTC 2016