Main MRPT website > C++ reference
MRPT logo
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" ;-)

#include <mrpt/utils/CTicTac.h>

List of all members.

Public Member Functions

 CTicTac ()
 Default constructor.
virtual ~CTicTac ()
 Destructor.
 CTicTac (const CTicTac &o)
CTicTacoperator= (const CTicTac &o)
void Tic ()
 Starts the stopwatch.
double Tac ()
 Stops the stopwatch.

Private Attributes

uint8_t largeInts [64]

Constructor & Destructor Documentation

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

Default constructor.

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

Destructor.

mrpt::utils::CTicTac::CTicTac ( const CTicTac o) [inline]

Definition at line 55 of file CTicTac.h.

References THROW_EXCEPTION.


Member Function Documentation

CTicTac& mrpt::utils::CTicTac::operator= ( const CTicTac o) [inline]

Definition at line 60 of file CTicTac.h.

References THROW_EXCEPTION.

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

Stops the stopwatch.

Returns:
Returns the ellapsed time in seconds.
See also:
Tic

Referenced by mrpt::graphs::CAStarAlgorithm::getOptimalSolution(), and mrpt::math::CMonteCarlo::doExperiment().

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

Member Data Documentation

uint8_t mrpt::utils::CTicTac::largeInts[64] [private]

Definition at line 45 of file CTicTac.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011