NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CTimer Class Reference

Search Toolkit Book for CTimer

+ Collaboration diagram for CTimer:

Public Member Functions

 CTimer (const CTimeout &timeout)
 
void Restart ()
 
bool IsExpired () const
 
unsigned PresetSeconds () const
 

Private Attributes

CDeadline m_Deadline
 
CTimeout m_Timeout
 

Detailed Description

Definition at line 187 of file exec_helpers.cpp.

Constructor & Destructor Documentation

◆ CTimer()

CTimer::CTimer ( const CTimeout timeout)
inline

Definition at line 190 of file exec_helpers.cpp.

Member Function Documentation

◆ IsExpired()

bool CTimer::IsExpired ( void  ) const
inline

◆ PresetSeconds()

unsigned CTimer::PresetSeconds ( ) const
inline

◆ Restart()

void CTimer::Restart ( void  )
inline

Definition at line 195 of file exec_helpers.cpp.

References m_Deadline, and m_Timeout.

Referenced by CJobContextProcessWatcher::Watch(), and CMonitoredProcessWatcher::Watch().

Member Data Documentation

◆ m_Deadline

CDeadline CTimer::m_Deadline
private

Definition at line 200 of file exec_helpers.cpp.

Referenced by IsExpired(), and Restart().

◆ m_Timeout

CTimeout CTimer::m_Timeout
private

Definition at line 201 of file exec_helpers.cpp.

Referenced by PresetSeconds(), and Restart().


The documentation for this class was generated from the following file:
Modified on Mon Mar 04 05:14:12 2024 by modify_doxy.py rev. 669887