SNAP Library 2.0, Developer Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <tm.h>
Public Member Functions | |
TTmStopWatch (const bool &Start=false) | |
void | Start () |
void | Stop () |
void | Reset (const bool &Start) |
int | GetTime () const |
double | GetSec () const |
int | GetSecInt () const |
double | GetMSec () const |
int | GetMSecInt () const |
Private Attributes | |
int | TmSoFar |
bool | RunningP |
TExeTm | ExeTm |
TTmStopWatch::TTmStopWatch | ( | const bool & | Start = false | ) | [inline] |
double TTmStopWatch::GetMSec | ( | ) | const [inline] |
Definition at line 393 of file tm.h.
References GetTime().
Referenced by GetMSecInt().
{ return double(GetTime()) / double(CLOCKS_PER_SEC/1000); }
int TTmStopWatch::GetMSecInt | ( | ) | const [inline] |
Definition at line 394 of file tm.h.
References GetMSec(), and TFlt::Round().
Referenced by TTmTimer::IsTimeUp().
{ return TFlt::Round(GetMSec()); }
double TTmStopWatch::GetSec | ( | ) | const [inline] |
Definition at line 391 of file tm.h.
References GetTime().
Referenced by GetSecInt().
{ return double(GetTime()) / double(CLOCKS_PER_SEC); }
int TTmStopWatch::GetSecInt | ( | ) | const [inline] |
Definition at line 392 of file tm.h.
References GetSec(), and TFlt::Round().
{ return TFlt::Round(GetSec()); }
int TTmStopWatch::GetTime | ( | ) | const [inline] |
void TTmStopWatch::Reset | ( | const bool & | Start | ) | [inline] |
void TTmStopWatch::Start | ( | ) | [inline] |
void TTmStopWatch::Stop | ( | ) | [inline] |
TExeTm TTmStopWatch::ExeTm [private] |
bool TTmStopWatch::RunningP [private] |
int TTmStopWatch::TmSoFar [private] |