Changeset 32332 in vbox
- Timestamp:
- Sep 9, 2010 7:38:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstTimer.cpp
r32330 r32332 230 230 for (int j = 0; j < (int)RT_ELEMENTS(cFrequency); j++) 231 231 { 232 unsigned len = cFrequency[j] * 70 / gcTicks; 233 unsigned deviation = j - RT_ELEMENTS(cFrequency) / 2; 234 RTPrintf("%+4d%c %6u ", deviation, deviation == 0 ? ' ' : '%', cFrequency[j]); 232 uint32_t len = cFrequency[j] * 70 / gcTicks; 233 uint32_t deviation = j - RT_ELEMENTS(cFrequency) / 2; 234 uint64_t u64FreqPercent = (uint64_t)cFrequency[j] * 10000 / gcTicks; 235 uint64_t u64FreqPercentFrac = u64FreqPercent % 100; 236 u64FreqPercent = u64FreqPercent / 100; 237 RTPrintf("%+4d%c %6u %3llu.%02llu%% ", 238 deviation, deviation == 0 ? ' ' : '%', cFrequency[j], 239 u64FreqPercent, u64FreqPercentFrac); 235 240 for (unsigned k = 0; k < len; k++) 236 241 RTPrintf("*");
Note:
See TracChangeset
for help on using the changeset viewer.