Open CASCADE Technology  7.6.0
Public Member Functions

MoniTool_TimerSentry Class Reference

A tool to facilitate using MoniTool_Timer functionality by automatically ensuring consistency of start/stop actions. More...

#include <MoniTool_TimerSentry.hxx>

Public Member Functions

 MoniTool_TimerSentry (const Standard_CString cname)
 Constructor creates an instance and runs the corresponding timer. More...
 
 MoniTool_TimerSentry (const Handle< MoniTool_Timer > &timer)
 Constructor creates an instance and runs the corresponding timer. More...
 
 ~MoniTool_TimerSentry ()
 Destructor stops the associated timer. More...
 
Handle< MoniTool_TimerTimer () const
 
void Stop ()
 Manually stops the timer. More...
 

Detailed Description

A tool to facilitate using MoniTool_Timer functionality by automatically ensuring consistency of start/stop actions.

When instance of TimerSentry is created, a timer with corresponding name is started When instance is deleted, timer stops

Constructor & Destructor Documentation

◆ MoniTool_TimerSentry() [1/2]

MoniTool_TimerSentry::MoniTool_TimerSentry ( const Standard_CString  cname)

Constructor creates an instance and runs the corresponding timer.

◆ MoniTool_TimerSentry() [2/2]

MoniTool_TimerSentry::MoniTool_TimerSentry ( const Handle< MoniTool_Timer > &  timer)

Constructor creates an instance and runs the corresponding timer.

◆ ~MoniTool_TimerSentry()

MoniTool_TimerSentry::~MoniTool_TimerSentry ( )

Destructor stops the associated timer.

Member Function Documentation

◆ Stop()

void MoniTool_TimerSentry::Stop ( )

Manually stops the timer.

◆ Timer()

Handle< MoniTool_Timer > MoniTool_TimerSentry::Timer ( ) const

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