open_iA  2020.04
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | List of all members
iATimeGuard Class Reference

Simple performance helper class following RAII principle: Instantiate to start timer, destroy to stop timer prints to debug console. More...

#include <iAPerformanceHelper.h>

Collaboration diagram for iATimeGuard:

Public Member Functions

iAPerformanceTimer::DurationType elapsed () const
 
 iATimeGuard (std::string const &caption="", bool printMemUsage=true)
 starts measuring and writes according message (and optionally memory usage) to the debug console More...
 
void time (std::string const &caption="")
 output an intermediate time with an optional caption More...
 
 ~iATimeGuard ()
 destructor, stops timer and outputs duration (and optionally memory usage) to the debug console More...
 

Detailed Description

Simple performance helper class following RAII principle: Instantiate to start timer, destroy to stop timer prints to debug console.

Constructor & Destructor Documentation

◆ iATimeGuard()

iATimeGuard::iATimeGuard ( std::string const &  caption = "",
bool  printMemUsage = true 
)

starts measuring and writes according message (and optionally memory usage) to the debug console

◆ ~iATimeGuard()

iATimeGuard::~iATimeGuard ( )

destructor, stops timer and outputs duration (and optionally memory usage) to the debug console

Member Function Documentation

◆ elapsed()

iAPerformanceTimer::DurationType iATimeGuard::elapsed ( ) const

◆ time()

void iATimeGuard::time ( std::string const &  caption = "")

output an intermediate time with an optional caption


The documentation for this class was generated from the following files: