| 
    SNAP Library 6.0, Developer Reference
    2020-12-09 16:24:20
    
   SNAP, a general purpose, high performance system for analysis and manipulation of large networks 
   | 
 
#include <tm.h>

Public Member Functions | |
| TTmProfiler () | |
| 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 | 
Static Public Member Functions | |
| static PTmProfiler | New () | 
Private Attributes | |
| TCRef | CRef | 
| TInt | MxNmLen | 
| THash< TStr, TTmStopWatch > | TimerH | 
Friends | |
| class | TPt< TTmProfiler > | 
| int TTmProfiler::AddTimer | ( | const TStr & | TimerNm | ) | 
Definition at line 1272 of file tm.cpp.
References THash< TKey, TDat, THashFunc >::AddKey(), TInt::GetMx(), TStr::Len(), MxNmLen, and TimerH.

      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 413 of file tm.h.
Referenced by GetTimerSumSec(), PrintReport(), and ResetAll().

      
  | 
  inline | 
Definition at line 414 of file tm.h.
Referenced by GetTimerSumSec(), PrintReport(), and ResetAll().

      
  | 
  inline | 
Definition at line 411 of file tm.h.
Referenced by PrintReport().

| double TTmProfiler::GetTimerSec | ( | const int & | TimerId | ) | const | 
Definition at line 1293 of file tm.cpp.
References TimerH.
Referenced by GetTimerSumSec(), and PrintReport().

| double TTmProfiler::GetTimerSumSec | ( | ) | const | 
Definition at line 1284 of file tm.cpp.
References GetTimerIdFFirst(), GetTimerIdFNext(), and GetTimerSec().
Referenced by PrintReport().


      
  | 
  inlinestatic | 
| void TTmProfiler::PrintReport | ( | const TStr & | ProfileNm = "" | ) | const | 
Definition at line 1297 of file tm.cpp.
References TStr::CStr(), TStr::GetSpaceStr(), GetTimerIdFFirst(), GetTimerIdFNext(), GetTimerNm(), GetTimerSec(), GetTimerSumSec(), TStr::Len(), and MxNmLen.

| void TTmProfiler::ResetAll | ( | ) | 
Definition at line 1277 of file tm.cpp.
References GetTimerIdFFirst(), GetTimerIdFNext(), and ResetTimer().

      
  | 
  inline | 
Definition at line 423 of file tm.h.
Referenced by ResetAll().

      
  | 
  friend | 
      
  | 
  private | 
Definition at line 402 of file tm.h.
Referenced by AddTimer(), and PrintReport().
      
  | 
  private | 
Definition at line 403 of file tm.h.
Referenced by AddTimer(), and GetTimerSec().