lib/src/BaseTools/OldTimer.cpp
// added by petermc, 18 Jan 2006
added by petermc, 18 Jan 2006
added by petermc 18 Jan 2006
void OldTimer::writeTotalPct(const string& a_extra)
{
  float pctTime = (100. * m_accumulated_WCtime) / m_Parent.m_accumulated_WCtime;
  char outputline[1024];
  sprintf(outputline, "%16.16s%12.6f sec (%7.3f%%) %s",
          Name().c_str(), m_accumulated_WCtime, pctTime, a_extra.c_str());
  pout() << outputline << "\n";
}
void OldTimer :: writeTotalPct ( const string & a_extra ) { float pctTime = ( 100. * m_accumulated_WCtime ) / m_Parent . m_accumulated_WCtime ; char outputline [ 1024 ] ; sprintf ( outputline , " " , Name ( ) . c_str ( ) , m_accumulated_WCtime , pctTime , a_extra . c_str ( ) ) ; pout ( ) << outputline << " \n " ; }
added by petermc, 18 Jan 2006
added by petermc 18 Jan 2006