SNAP Library 2.2, Developer Reference  2014-03-11 19:15:55
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TTmTimer Class Reference

#include <tm.h>

Collaboration diagram for TTmTimer:

List of all members.

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.

: MxMSecs(_MxMSecs), StopWatch(true) { }

Member Function Documentation

bool TTmTimer::IsTimeUp ( ) const [inline]

Definition at line 444 of file tm.h.

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

{ return (StopWatch.GetMSecInt() > MxMSecs); }

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.

{ StopWatch.Reset(true); }

Here is the call graph for this function:


Member Data Documentation

int TTmTimer::MxMSecs [private]

Definition at line 434 of file tm.h.

Referenced by IsTimeUp().

Definition at line 435 of file tm.h.

Referenced by IsTimeUp(), and Restart().


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