VirtualBox

Ignore:
Timestamp:
Jan 5, 2008 8:11:02 PM (17 years ago)
Author:
vboxsync
Message:

Print the delta relative to cpu0.

File:
1 edited

Legend:

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

    r6095 r6252  
    331331            } while (!fDone);
    332332
    333             RTPrintf(" #  ID  TSC\n"
    334                      "-----------------------\n");
    335             for (i = 0; i < cCpus; i++)
    336                 RTPrintf("%2d  %02x %RX64\n", i, s_aData[i].u8ApicId, s_aData[i].TSC);
     333            RTPrintf(" #  ID  TSC            delta0 (decimal)\n"
     334                     "-----------------------------------------\n");
     335            RTPrintf("%2d  %02x  %RX64\n", 0, s_aData[0].u8ApicId, s_aData[0].TSC);
     336            for (i = 1; i < cCpus; i++)
     337                RTPrintf("%2d  %02x  %RX64  %s%lld\n", i, s_aData[i].u8ApicId, s_aData[i].TSC,
     338                         s_aData[i].TSC > s_aData[0].TSC ? "+" : "", s_aData[i].TSC - s_aData[0].TSC);
    337339            RTPrintf("(Needed %u attempt%s.)\n", cTries + 1, cTries ? "s" : "");
    338340            break;
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