Changeset 20442 in vbox
- Timestamp:
- Jun 9, 2009 2:38:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstSemMutex.cpp
r20440 r20442 183 183 184 184 uint64_t Normal = Total / cThreads; 185 uint64_t MaxD iviation = 0;185 uint64_t MaxDeviation = 0; 186 186 for (i = 0; i < cThreads; i++) 187 187 { … … 190 190 RTPrintf("tstSemMutex: Warning! Thread %d deviates by more than 50%% - %llu (it) vs. %llu (avg)\n", 191 191 i, g_au64[i], Normal); 192 if (Delta > MaxD iviation)193 MaxD iviation = Delta;194 195 } 196 197 RTPrintf("tstSemMutex: Threads: %u Total: %llu Per Sec: %llu Avg: %llu ns Max d iv: %llu%%\n",192 if (Delta > MaxDeviation) 193 MaxDeviation = Delta; 194 195 } 196 197 RTPrintf("tstSemMutex: Threads: %u Total: %llu Per Sec: %llu Avg: %llu ns Max dev: %llu%%\n", 198 198 cThreads, 199 199 Total, 200 200 Total / cSeconds, 201 201 ElapsedNS / Total, 202 MaxD iviation * 100 / Normal202 MaxDeviation * 100 / Normal 203 203 ); 204 204 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.