VirtualBox

Changeset 45020 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 13, 2013 2:34:03 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84257
Message:

tstRTSemRW/test4: Set a couple of values instead of using just printing them to stdout.

File:
1 edited

Legend:

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

    r28800 r45020  
    298298    }
    299299
    300     RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
    301                  "Threads: %u  Total: %llu  Per Sec: %llu  Avg: %llu ns  Max dev: %llu%%\n",
    302                  cThreads,
    303                  cItrTotal,
    304                  cItrTotal / cSeconds,
    305                  ElapsedNS / cItrTotal,
    306                  cItrMaxDeviation * 100 / cItrNormal
    307                  );
     300    //RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS,
     301    //             "Threads: %u  Total: %llu  Per Sec: %llu  Avg: %llu ns  Max dev: %llu%%\n",
     302    //             cThreads,
     303    //             cItrTotal,
     304    //             cItrTotal / cSeconds,
     305    //             ElapsedNS / cItrTotal,
     306    //             cItrMaxDeviation * 100 / cItrNormal
     307    //             );
     308    //
     309    RTTestValue(g_hTest, "Thruput", cItrTotal * UINT32_C(1000000000) / ElapsedNS, RTTESTUNIT_CALLS_PER_SEC);
     310    RTTestValue(g_hTest, "Max diviation", cItrMaxDeviation * 100 / cItrNormal, RTTESTUNIT_PCT);
    308311}
    309312
Note: See TracChangeset for help on using the changeset viewer.

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