Definition at line 172 of file Timer.h. Referenced by Impala::Util::TimeStats::Print(), and SplitTimeStr(). 00173 { 00174 char printBuf[2048]; 00175 int hours = int (secs / 3600); 00176 secs -= hours * 3600; 00177 int minutes = int (secs / 60); 00178 secs -= minutes * 60; 00179 sprintf(printBuf, "%dh%dm%.2fs", hours, minutes, secs); 00180 return String(printBuf); 00181 }
|