Open CASCADE Technology 6.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

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

#include <MoniTool_TimerSentry.hxx>

Public Member Functions

 MoniTool_TimerSentry (const Standard_CString cname)
 Constructor creates an instance and runs the corresponding timer

 MoniTool_TimerSentry (const Handle< MoniTool_Timer > &timer)
 Constructor creates an instance and runs the corresponding timer

void Destroy ()
 Destructor stops the associated timer

 ~MoniTool_TimerSentry ()
Handle_MoniTool_Timer Timer () const
void Stop ()
 Manually stops the timer


Constructor & Destructor Documentation

MoniTool_TimerSentry::MoniTool_TimerSentry ( const Standard_CString  cname)
MoniTool_TimerSentry::MoniTool_TimerSentry ( const Handle< MoniTool_Timer > &  timer)
MoniTool_TimerSentry::~MoniTool_TimerSentry ( ) [inline]

Member Function Documentation

void MoniTool_TimerSentry::Destroy ( )
void MoniTool_TimerSentry::Stop ( )
Handle_MoniTool_Timer MoniTool_TimerSentry::Timer ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines