Main MRPT website > C++ reference for MRPT 1.9.9
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

Definition at line 152 of file CTimeLogger.h.

#include <mrpt/utils/CTimeLogger.h>

Public Member Functions

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

Public Attributes

CTimeLoggerm_logger
 
const char * m_section_name
 

Constructor & Destructor Documentation

◆ CTimeLoggerEntry()

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

Definition at line 297 of file CTimeLogger.cpp.

References mrpt::utils::CTimeLogger::enter(), m_logger, and m_section_name.

Here is the call graph for this function:

◆ ~CTimeLoggerEntry()

CTimeLoggerEntry::~CTimeLoggerEntry ( )

Definition at line 303 of file CTimeLogger.cpp.

References mrpt::utils::CTimeLogger::leave(), m_logger, and m_section_name.

Here is the call graph for this function:

Member Data Documentation

◆ m_logger

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

Definition at line 156 of file CTimeLogger.h.

Referenced by CTimeLoggerEntry(), and ~CTimeLoggerEntry().

◆ m_section_name

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

Definition at line 157 of file CTimeLogger.h.

Referenced by CTimeLoggerEntry(), and ~CTimeLoggerEntry().




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