SNAP Library , Developer Reference  2013-01-07 14:03:36
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 435 of file tm.h.


Constructor & Destructor Documentation

TTmTimer::TTmTimer ( const int &  _MxMSecs) [inline]

Definition at line 442 of file tm.h.

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

Member Function Documentation

bool TTmTimer::IsTimeUp ( ) const [inline]

Definition at line 447 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 445 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 437 of file tm.h.

Referenced by IsTimeUp().

Definition at line 438 of file tm.h.

Referenced by IsTimeUp(), and Restart().


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