SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
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 433 of file tm.h.

Constructor & Destructor Documentation

TTmTimer::TTmTimer ( const int &  _MxMSecs)
inline

Definition at line 440 of file tm.h.

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

Member Function Documentation

bool TTmTimer::IsTimeUp ( ) const
inline

Definition at line 445 of file tm.h.

References TTmStopWatch::GetMSecInt(), and MxMSecs.

445 { return (StopWatch.GetMSecInt() > MxMSecs); }
int GetMSecInt() const
Definition: tm.h:395
int MxMSecs
Definition: tm.h:435
TTmStopWatch StopWatch
Definition: tm.h:436

Here is the call graph for this function:

void TTmTimer::Restart ( )
inline

Definition at line 443 of file tm.h.

References TTmStopWatch::Reset().

443 { StopWatch.Reset(true); }
TTmStopWatch StopWatch
Definition: tm.h:436
void Reset(const bool &Start)
Definition: tm.h:389

Here is the call graph for this function:

TTmTimer::UndefDefaultCopyAssign ( TTmTimer  )
private

Member Data Documentation

int TTmTimer::MxMSecs
private

Definition at line 435 of file tm.h.

Referenced by IsTimeUp().

TTmStopWatch TTmTimer::StopWatch
private

Definition at line 436 of file tm.h.


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