VirtualBox

Changeset 32332 in vbox


Ignore:
Timestamp:
Sep 9, 2010 7:38:51 AM (14 years ago)
Author:
vboxsync
Message:

tstTimer: be more verbose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstTimer.cpp

    r32330 r32332  
    230230        for (int j = 0; j < (int)RT_ELEMENTS(cFrequency); j++)
    231231        {
    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);
    235240            for (unsigned k = 0; k < len; k++)
    236241                RTPrintf("*");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette