lib/src/BaseTools/OldTimer.cpp
// OldTimer construction for the root of a tree.
OldTimer construction for the root of a tree.
OldTimer construction for the root of a tree .
OldTimer::OldTimer(const string& name, const int tableid)
  :
  m_name(name),
  m_Parent(*this)
{
#ifdef TIMER_DEBUG
  printf(" Root OldTimer: %s  ID_counter=%d tableid=%d\n", Name().c_str(), ID_counter, tableid);
#endif
  setup();
  m_tableID = tableid;
  if (TimerList==NULL) TimerList = new list<OldTimer*>();
  TimerList->push_back(this);
}
OldTimer :: OldTimer ( const string & name , const int tableid ) : m_name ( name ) , m_Parent ( * this ) { #ifdef TIMER_DEBUG printf ( " \n " , Name ( ) . c_str ( ) , ID_counter , tableid ) ; #endif setup ( ) ; m_tableID = tableid ; if ( TimerList == NULL ) TimerList = new list < OldTimer * > ( ) ; TimerList -> push_back ( this ) ; }
OldTimer construction for the root of a tree.
OldTimer construction for the root of a tree .
// Make a list of pointers of all Parent OldTimers