Main MRPT website > C++ reference for MRPT 1.9.9
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 23 of file CTicTac.h.

#include <mrpt/utils/CTicTac.h>

Public Member Functions

 CTicTac ()
 Default constructor. More...
 
 CTicTac (const CTicTac &)=delete
 
CTicTacoperator= (const CTicTac &)=delete
 
void Tic ()
 Starts the stopwatch. More...
 
double Tac ()
 Stops the stopwatch. More...
 

Private Attributes

unsigned char largeInts [64]
 

Constructor & Destructor Documentation

◆ CTicTac() [1/2]

CTicTac::CTicTac ( )

Default constructor.

Implicitly calls Tic()

Definition at line 62 of file CTicTac.cpp.

References largeInts, and Tic().

Here is the call graph for this function:

◆ CTicTac() [2/2]

mrpt::utils::CTicTac::CTicTac ( const CTicTac )
delete

Member Function Documentation

◆ operator=()

CTicTac& mrpt::utils::CTicTac::operator= ( const CTicTac )
delete

◆ Tac()

double CTicTac::Tac ( )

Stops the stopwatch.

Returns
Returns the ellapsed time in seconds.
See also
Tic

Definition at line 97 of file CTicTac.cpp.

References TIMEVAL_NUMS.

Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::_optimizeGraph(), mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), mrpt::vision::CFeatureExtraction::detectFeatures(), mrpt::utils::CTimeLogger::do_enter(), mrpt::utils::CTimeLogger::do_leave(), mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment(), mrpt::hwdrivers::CNTRIPEmitter::doProcess(), mrpt::vision::CFeatureExtraction::extractFeaturesKLT(), mrpt::nav::CRobot2NavInterface::getNavigationTime(), mrpt::hwdrivers::COpenNI2_RGBD360::getNextObservation(), mrpt::graphs::CAStarAlgorithm< T >::getOptimalSolution(), mrpt::comms::net::http_request(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::maps::CRandomFieldGridMap2D::internal_clear(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::internal_initialize(), mrpt::maps::CRandomFieldGridMap3D::internal_initialize(), mrpt::hwdrivers::CSickLaserSerial::LMS_waitACK(), mrpt::hwdrivers::CSickLaserSerial::LMS_waitIncomingFrame(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_TBI(), mrpt::vision::CDifodo::odometryCalculation(), mrpt::graphslam::CWindowObserver::OnEvent(), mrpt::nav::CAbstractPTGBasedReactive::performNavigationStep(), mrpt::hmtslam::CLocalMetricHypothesis::prediction_and_update(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::comms::CSerialPort::Read(), mrpt::comms::CSerialPort::ReadString(), mrpt::maps::CGasConcentrationGridMap2D::simulateAdvection(), mrpt::utils::CRateTimer::sleep(), mrpt::nav::PlannerRRT_SE2_TPS::solve(), mrpt::hmtslam::CHMTSLAM::thread_LSLAM(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::updateMapVisualization(), mrpt::hwdrivers::CCANBusReader::waitACK(), mrpt::hwdrivers::CCANBusReader::waitForVersion(), and mrpt::hwdrivers::CCANBusReader::waitIncomingFrame().

Here is the caller graph for this function:

◆ Tic()

void CTicTac::Tic ( )

Starts the stopwatch.

See also
Tac

Definition at line 82 of file CTicTac.cpp.

References TIMEVAL_NUMS.

Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::_optimizeGraph(), mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), CTicTac(), mrpt::utils::CTimeLogger::CTimeLogger(), mrpt::vision::CFeatureExtraction::detectFeatures(), mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment(), mrpt::hwdrivers::CNTRIPEmitter::doProcess(), mrpt::vision::CFeatureExtraction::extractFeaturesKLT(), mrpt::hmtslam::CHMTSLAM::generateLogFiles(), mrpt::hwdrivers::COpenNI2_RGBD360::getNextObservation(), mrpt::graphs::CAStarAlgorithm< T >::getOptimalSolution(), mrpt::comms::net::http_request(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF(), mrpt::maps::CRandomFieldGridMap2D::insertObservation_KF2(), mrpt::maps::CRandomFieldGridMap2D::internal_clear(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::internal_initialize(), mrpt::maps::CRandomFieldGridMap3D::internal_initialize(), mrpt::hwdrivers::CSickLaserSerial::LMS_waitACK(), mrpt::hwdrivers::CSickLaserSerial::LMS_waitIncomingFrame(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_AA(), mrpt::hmtslam::CHMTSLAM::LSLAM_process_message_from_TBI(), mrpt::vision::CDifodo::odometryCalculation(), mrpt::nav::CAbstractPTGBasedReactive::performNavigationStep(), mrpt::hmtslam::CLocalMetricHypothesis::prediction_and_update(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::comms::CSerialPort::Read(), mrpt::comms::CSerialPort::ReadString(), mrpt::nav::CRobot2NavInterface::resetNavigationTimer(), run_test_pf_localization(), mrpt::maps::CGasConcentrationGridMap2D::simulateAdvection(), mrpt::utils::CRateTimer::sleep(), mrpt::nav::PlannerRRT_SE2_TPS::solve(), mrpt::hmtslam::CHMTSLAM::thread_LSLAM(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::updateMapVisualization(), mrpt::hwdrivers::CCANBusReader::waitACK(), mrpt::hwdrivers::CCANBusReader::waitForVersion(), and mrpt::hwdrivers::CCANBusReader::waitIncomingFrame().

Here is the caller graph for this function:

Member Data Documentation

◆ largeInts

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

Definition at line 37 of file CTicTac.h.

Referenced by CTicTac().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019