SNAP Library 2.4, Developer Reference  2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TTmTimer Class Reference

#include <tm.h>

Collaboration diagram for TTmTimer:

Public Member Functions

 TTmTimer (const int &_MxMSecs)
 
void Restart ()
 
bool IsTimeUp () const
 

Private Member Functions

 UndefDefaultCopyAssign (TTmTimer)
 

Private Attributes

int MxMSecs
 
TTmStopWatch StopWatch
 

Detailed Description

Definition at line 432 of file tm.h.

Constructor & Destructor Documentation

TTmTimer::TTmTimer ( const int &  _MxMSecs)
inline

Definition at line 439 of file tm.h.

439 : MxMSecs(_MxMSecs), StopWatch(true) { }
int MxMSecs
Definition: tm.h:434
TTmStopWatch StopWatch
Definition: tm.h:435

Member Function Documentation

bool TTmTimer::IsTimeUp ( ) const
inline

Definition at line 444 of file tm.h.

References TTmStopWatch::GetMSecInt(), MxMSecs, and StopWatch.

444 { return (StopWatch.GetMSecInt() > MxMSecs); }
int GetMSecInt() const
Definition: tm.h:394
int MxMSecs
Definition: tm.h:434
TTmStopWatch StopWatch
Definition: tm.h:435

Here is the call graph for this function:

void TTmTimer::Restart ( )
inline

Definition at line 442 of file tm.h.

References TTmStopWatch::Reset(), and StopWatch.

442 { StopWatch.Reset(true); }
TTmStopWatch StopWatch
Definition: tm.h:435
void Reset(const bool &Start)
Definition: tm.h:388

Here is the call graph for this function:

TTmTimer::UndefDefaultCopyAssign ( TTmTimer  )
private

Member Data Documentation

int TTmTimer::MxMSecs
private

Definition at line 434 of file tm.h.

Referenced by IsTimeUp().

TTmStopWatch TTmTimer::StopWatch
private

Definition at line 435 of file tm.h.

Referenced by IsTimeUp(), and Restart().


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