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

Detailed Description

A safe way to call enter() and leave() of a mrpt::system::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 151 of file system/CTimeLogger.h.

#include <mrpt/system/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 296 of file CTimeLogger.cpp.

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

◆ ~CTimeLoggerEntry()

CTimeLoggerEntry::~CTimeLoggerEntry ( )

Definition at line 302 of file CTimeLogger.cpp.

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

Member Data Documentation

◆ m_logger

CTimeLogger& mrpt::system::CTimeLoggerEntry::m_logger

Definition at line 155 of file system/CTimeLogger.h.

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

◆ m_section_name

const char* mrpt::system::CTimeLoggerEntry::m_section_name

Definition at line 156 of file system/CTimeLogger.h.

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

mrpt::utils::CTimeLogger
mrpt::system::CTimeLogger CTimeLogger
Definition: utils/CTimeLogger.h:7
mrpt::system::CTimeLoggerEntry::CTimeLoggerEntry
CTimeLoggerEntry(const CTimeLogger &logger, const char *section_name)
Definition: CTimeLogger.cpp:296



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST