Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions | Public Attributes
mrpt::utils::CTimeLoggerEntry Struct Reference

Detailed Description

A safe way to call enter() and leave() of a mrpt::utils::CTimeLogger upon construction and destruction of this auxiliary object, making sure that leave() will be called upon exceptions, etc.

Usage:

CTimeLogger logger;
// ...
{ // Start of scope to be monitorized
CTimeLoggerEntry tle(logger,"operation-name");
// do whatever
} // End of scope
CTimeLoggerEntry(CTimeLogger &logger, const char *section_name)

Definition at line 105 of file CTimeLogger.h.

#include <mrpt/utils/CTimeLogger.h>

Public Member Functions

 CTimeLoggerEntry (CTimeLogger &logger, const char *section_name)
 
 ~CTimeLoggerEntry ()
 

Public Attributes

CTimeLoggerm_logger
 
const char * m_section_name
 

Constructor & Destructor Documentation

◆ CTimeLoggerEntry()

mrpt::utils::CTimeLoggerEntry::CTimeLoggerEntry ( CTimeLogger logger,
const char *  section_name 
)

◆ ~CTimeLoggerEntry()

mrpt::utils::CTimeLoggerEntry::~CTimeLoggerEntry ( )

Member Data Documentation

◆ m_logger

CTimeLogger& mrpt::utils::CTimeLoggerEntry::m_logger

Definition at line 109 of file CTimeLogger.h.

◆ m_section_name

const char* mrpt::utils::CTimeLoggerEntry::m_section_name

Definition at line 110 of file CTimeLogger.h.




Page generated by Doxygen 1.9.2 for MRPT 1.4.0 SVN: at Mon Sep 20 00:47:55 UTC 2021