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 }
|