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

void Impala::Util::TimeStats::ComputePercentages (  )  [inline]

Definition at line 136 of file TimeStats.h.

References mGroups, and mRelative.

Referenced by Print().

00137     {
00138         double total = 0;
00139         int i;
00140         if(mRelative)
00141             total = mGroups[0]->mTotal;
00142         else
00143             for(i=0 ; i<mGroups.size() ; i++)
00144                 total += mGroups[i]->mTotal;
00145         for(i=0 ; i<mGroups.size() ; i++)
00146             mGroups[i]->mPercentage = 100. * mGroups[i]->mTotal / total;
00147     }


Generated on Fri Mar 19 11:41:30 2010 for ImpalaSrc by  doxygen 1.5.1