open_iA 2024.9
Loading...
Searching...
No Matches
iATimeGuard Class Reference

Simple performance helper class following RAII principle. More...

#include <iAPerformanceHelper.h>

Public Member Functions

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

Detailed Description

Simple performance helper class following RAII principle.

Instantiate to start timer, destroy to stop timer; prints to log window

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 log window

◆ ~iATimeGuard()

iATimeGuard::~iATimeGuard ( )

destructor, stops timer and outputs duration (and optionally memory usage) to the log window

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: