Definition at line 204 of file TimeStats.h. References mGrandTotal, mGroups, mRelative, and NrGroups(). Referenced by Print(). 00205 { 00206 mGrandTotal = 0; 00207 if (mRelative) 00208 { 00209 mGrandTotal = mGroups[0]->mTotal; 00210 } 00211 else 00212 { 00213 for (int i=0 ; i<NrGroups() ; i++) 00214 mGrandTotal += mGroups[i]->mTotal; 00215 } 00216 for (int i=0 ; i<NrGroups() ; i++) 00217 mGroups[i]->mPercentage = 100. * mGroups[i]->mTotal / mGrandTotal; 00218 }
Here is the call graph for this function: ![]()
|