SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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>

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.

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

Definition at line 443 of file tm.h.

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

Member Data Documentation

int TTmTimer::MxMSecs
private

Definition at line 435 of file tm.h.

TTmStopWatch TTmTimer::StopWatch
private

Definition at line 436 of file tm.h.


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