VirtualBox

Changeset 6252

Show
Ignore:
Timestamp:
01/05/08 21:11:02 (1 year ago)
Author:
vboxsync
Message:

Print the delta relative to cpu0.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy