SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
tm.h File Reference

Go to the source code of this file.

Classes

class  TTmInfo
class  TJulianDate
class  TSecTm
class  TTm
class  TExeTm
class  TTmStopWatch
class  TTmTimer

Typedefs

typedef TVec< TSecTmTSecTmV
typedef TKeyDat< TSecTm, TStrTSecTmStrKd
typedef TVec< TSecTmStrKdTSecTmStrKdV
typedef TVec< TTmTTmV
typedef TPair< TTm, TStrTTmStrPr
typedef TPair< TStr, TTmTStrTmPr
typedef TVec< TTmStrPrTTmStrPrV
typedef TVec< TStrTmPrTStrTmPrV

Enumerations

enum  TTmUnit {
  tmuUndef, tmu1Sec, tmu1Min, tmu10Min,
  tmu15Min, tmu30Min, tmu1Hour, tmu2Hour,
  tmu4Hour, tmu6Hour, tmu12Hour, tmuDay,
  tmuWeek, tmuMonth, tmuYear, tmuNodes,
  tmuEdges
}

Functions

 TTmProfiler ()
static PTmProfiler New ()
int AddTimer (const TStr &TimerNm)
int GetTimerId (const TStr &TimerNm) const
TStr GetTimerNm (const int &TimerId) const
int GetTimers () const
int GetTimerIdFFirst () const
bool GetTimerIdFNext (int &TimerId) const
void StartTimer (const TStr &TimerNm)
void StartTimer (const int &TimerId)
void StopTimer (const TStr &TimerNm)
void StopTimer (const int &TimerId)
void ResetAll ()
void ResetTimer (const TStr &TimerNm)
void ResetTimer (const int &TimerId)
double GetTimerSumSec () const
double GetTimerSec (const int &TimerId) const
void PrintReport (const TStr &ProfileNm="") const

Variables

ClassTP(TTmProfiler,
PTmProfiler) private THash
< TStr, TTmStopWatch
TimerH

Typedef Documentation

typedef TVec<TSecTm> TSecTmV
typedef TPair<TStr, TTm> TStrTmPr
typedef TPair<TTm, TStr> TTmStrPr
typedef TVec<TTm> TTmV

Enumeration Type Documentation

enum TTmUnit
Enumerator:
tmuUndef 
tmu1Sec 
tmu1Min 
tmu10Min 
tmu15Min 
tmu30Min 
tmu1Hour 
tmu2Hour 
tmu4Hour 
tmu6Hour 
tmu12Hour 
tmuDay 
tmuWeek 
tmuMonth 
tmuYear 
tmuNodes 
tmuEdges 

Function Documentation

int TTmProfiler::AddTimer ( const TStr TimerNm)
int GetTimerId ( const TStr TimerNm) const
int GetTimerIdFFirst ( ) const
bool GetTimerIdFNext ( int &  TimerId) const
TStr GetTimerNm ( const int &  TimerId) const
int GetTimers ( ) const
double TTmProfiler::GetTimerSec ( const int &  TimerId) const
double TTmProfiler::GetTimerSumSec ( ) const
static PTmProfiler New ( ) [static]
void TTmProfiler::PrintReport ( const TStr ProfileNm = "") const
void ResetTimer ( const TStr TimerNm)
void ResetTimer ( const int &  TimerId)
void StartTimer ( const TStr TimerNm)
void StartTimer ( const int &  TimerId)
void StopTimer ( const TStr TimerNm)
void StopTimer ( const int &  TimerId)

Variable Documentation

ClassTP (TTmProfiler, PTmProfiler) private THash<TStr, TTmStopWatch> TimerH