Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

static String Impala::Timer::Format ( double  secs  )  [inline, static]

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     }


Generated on Thu Jan 13 09:14:04 2011 for ImpalaSrc by  doxygen 1.5.1