MRPT  1.9.9
List of all members | Public Member Functions | Private Attributes
mrpt::system::CTicTac Class Reference

Detailed Description

A high-performance stopwatch, with typical resolution of nanoseconds.

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

Definition at line 17 of file system/CTicTac.h.

#include <mrpt/system/CTicTac.h>

Public Member Functions

 CTicTac () noexcept
 Default constructor. More...
 
void Tic () noexcept
 Starts the stopwatch. More...
 
double Tac () noexcept
 Stops the stopwatch. More...
 

Private Attributes

unsigned long largeInts [4] {0, 0, 0, 0}
 

Constructor & Destructor Documentation

◆ CTicTac()

CTicTac::CTicTac ( )
noexcept

Default constructor.

Implicitly calls Tic()

Definition at line 59 of file CTicTac.cpp.

References largeInts, and Tic().

Here is the call graph for this function:

Member Function Documentation

◆ Tac()

double CTicTac::Tac ( )
noexcept

Stops the stopwatch.

Returns
Returns the ellapsed time in seconds.
See also
Tic()

Definition at line 86 of file CTicTac.cpp.

References AuxWindowsTicTac::dbl_period, AuxWindowsTicTac::GetInstance(), and LARGE_INTEGER_NUMS.

Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::_optimizeGraph(), mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), mrpt::system::CTimeLogger::do_enter(), mrpt::system::CTimeLogger::do_leave(), mrpt::apps::MonteCarloLocalization_Base::do_pf_localization(), mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment(), mrpt::hwdrivers::CNTRIPEmitter::doProcess(), mrpt::nav::CRobot2NavInterface::getNavigationTime(), mrpt::hwdrivers::COpenNI2_RGBD360::getNextObservation(), mrpt::graphs::CAStarAlgorithm< CCoinDistribution >::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::CLSLAM_RBPF_2DLASER::prediction_and_update_pfAuxiliaryPFOptimal(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::comms::CSerialPort::Read(), mrpt::comms::CSerialPort::ReadString(), mrpt::gui::CGlCanvasBase::renderCanvas(), mrpt::apps::RawlogGrabberApp::run(), mrpt::apps::ICP_SLAM_App_Base::run(), mrpt::apps::KFSLAMApp::Run_KF_SLAM(), mrpt::maps::CGasConcentrationGridMap2D::simulateAdvection(), mrpt::system::CRateTimer::sleep(), mrpt::nav::PlannerRRT_SE2_TPS::solve(), TestLevMarq(), 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 call graph for this function:
Here is the caller graph for this function:

◆ Tic()

void CTicTac::Tic ( )
noexcept

Starts the stopwatch.

See also
Tac()

Definition at line 75 of file CTicTac.cpp.

References LARGE_INTEGER_NUMS.

Referenced by mrpt::graphslam::optimizers::CLevMarqGSO< GRAPH_T >::_optimizeGraph(), mrpt::slam::CGridMapAligner::AlignPDF_robustMatch(), mrpt::nav::CAbstractPTGBasedReactive::build_movement_candidate(), CTicTac(), mrpt::system::CTimeLogger::CTimeLogger(), mrpt::apps::MonteCarloLocalization_Base::do_pf_localization(), mrpt::math::CMonteCarlo< T, NUM, OTHER >::doExperiment(), mrpt::hwdrivers::CNTRIPEmitter::doProcess(), mrpt::hmtslam::CHMTSLAM::generateLogFiles(), mrpt::hwdrivers::COpenNI2_RGBD360::getNextObservation(), mrpt::graphs::CAStarAlgorithm< CCoinDistribution >::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::CLSLAM_RBPF_2DLASER::prediction_and_update_pfAuxiliaryPFOptimal(), mrpt::slam::CMetricMapBuilderICP::processObservation(), mrpt::comms::CSerialPort::Read(), mrpt::comms::CSerialPort::ReadString(), mrpt::gui::CGlCanvasBase::renderCanvas(), mrpt::nav::CRobot2NavInterface::resetNavigationTimer(), mrpt::apps::RawlogGrabberApp::run(), mrpt::apps::ICP_SLAM_App_Base::run(), mrpt::apps::KFSLAMApp::Run_KF_SLAM(), run_test_pf_localization(), mrpt::maps::CGasConcentrationGridMap2D::simulateAdvection(), mrpt::system::CRateTimer::sleep(), mrpt::nav::PlannerRRT_SE2_TPS::solve(), TestLevMarq(), 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 long mrpt::system::CTicTac::largeInts[4] {0, 0, 0, 0}
private

Definition at line 29 of file system/CTicTac.h.

Referenced by CTicTac().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 4363012a5 Tue Nov 19 10:55:26 2019 +0100 at mar nov 19 11:00:13 CET 2019