Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void Kconfigure::stop_time (  )  [private]

Stop time and print into log

Definition at line 839 of file kconfigure.cpp.

References logHtml, logString, and time.

Referenced by slotFinishAction(), and slotKillProcess().

{
      int msec = time.elapsed();    
      int hour = msec/3600000;
      int min = (msec % 3600000) / 60000;
      int sec = (msec / 1000) % 60;
      QString formedTime = "";

      if( hour > 0 ) formedTime += i18n(" %1 hour").arg(hour);
      if( min > 0 ) formedTime += i18n(" %1 minutes").arg(min);
      formedTime += i18n(" %1 seconds").arg(sec);

      if( logHtml )
      {
            logString += "</TD></TR><TR><TD BGCOLOR=#dddddd >";
            logString += i18n("Time : %1.").arg(formedTime);
      } else {
            logString += ">> " + i18n("Time : %1.").arg(formedTime) + "\n";
      }
}


Generated by  Doxygen 1.6.0   Back to index