SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
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 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(), MxMSecs, and StopWatch.

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(), and StopWatch.

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.

Referenced by IsTimeUp(), and Restart().


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