本文整理汇总了C++中Test3函数的典型用法代码示例。如果您正苦于以下问题:C++ Test3函数的具体用法?C++ Test3怎么用?C++ Test3使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Test3函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main (void)
{
unsigned long T;
/* Show info at start */
ShowInfo ();
/* Remember the time */
T = clock ();
/* Do the tests */
Test1 ();
Test2 ();
Test3 ();
Test4 ();
Test5 ();
Test6 ();
/* Calculate the time and print it */
T = clock () - T;
printf ("Time needed: %lu ticks\n", T);
/* Done */
return EXIT_SUCCESS;
}
示例2: Test
void Test(void *)
{
TestRealloc();
Test3();
Test1<10, true, 100>();
Test1<100, true, 100>();
Test1<1000, true, 100>();
Test1<10000, true, 100>();
Test1<10, true, 100>();
Test1<100, true, 100>();
Test1<1000, true, 100>();
Test1<10000, true, 100>();
Test1<10, false, 100>();
Test1<100, false, 100>();
Test1<1000, false, 100>();
Test1<10, false, 100>();
Test1<100, false, 100>();
Test1<1000, false, 100>();
TestSTL();
TestSTL();
TestSTL2();
TestSTL2();
TestRealloc();
}
示例3: main
int main( int argc, char* argv[] )
{
#ifdef WIN32
WSAData wsaData;
int code = WSAStartup(MAKEWORD(1, 1), &wsaData);
if( code != 0 )
{
printf("shite. %d\n",code);
return 0;
}
#endif //WIN32
try
{
Test1();
Test2();
Test3();
}
catch( happyhttp::Wobbly& e )
{
printf("Exception:\n%s\n", e.what() );
}
#ifdef WIN32
WSACleanup();
#endif // WIN32
return 0;
}
示例4: main
int main(int argc, char *argv[])
{
Test1();
Test2();
Test3();
return 0;
}
示例5: main
int main(int argc, const char * argv[]) {
// Test1();
// Test2();
Test3();
return 0;
return 0;
}
示例6: _tmain
int _tmain(int argc, _TCHAR* argv[])
{
Test1();
Test2();
Test3();
return 0;
}
示例7: main
int main()
{
//Test1();
//Test2();
Test3();
system("pause");
return 0;
}
示例8: main
int main() {
Test1();
Test2();
Test3();
EmptyTest();
TestSpawnTeleport();
return 0;
}
示例9: main
int main(int argc,char **argv)
{
Test1();
Test2();
Test3();
Test4();
Test5();
}
示例10: main
int main()
{
Test1();
Test2();
Test3();
Test4();
return 0;
}
示例11: main
int main(int argc, char **argv)
{
int rc = RTTestInitAndCreate("tstRTSemRW", &g_hTest);
if (rc)
return 1;
RTTestBanner(g_hTest);
if (Test1())
{
RTCPUID cCores = RTMpGetOnlineCoreCount();
if (argc == 1)
{
Test2();
Test3();
/* threads, seconds, writePercent, yield, quiet */
Test4( 1, 1, 0, true, false);
Test4( 1, 1, 1, true, false);
Test4( 1, 1, 5, true, false);
Test4( 2, 1, 3, true, false);
Test4( 10, 1, 5, true, false);
Test4( 10, 10, 10, false, false);
if (cCores > 1)
{
RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "benchmarking (%u CPU cores)...\n", cCores);
for (unsigned cThreads = 1; cThreads < 32; cThreads++)
Test4(cThreads, 2, 1, false, true);
}
else
RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "skipping benchmarking (only %u CPU core available)\n", cCores);
/** @todo add a testcase where some stuff times out. */
}
else
{
if (cCores > 1)
{
/* threads, seconds, writePercent, yield, quiet */
RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "benchmarking...\n");
Test4( 1, 3, 1, false, true);
Test4( 1, 3, 1, false, true);
Test4( 1, 3, 1, false, true);
Test4( 2, 3, 1, false, true);
Test4( 2, 3, 1, false, true);
Test4( 2, 3, 1, false, true);
Test4( 3, 3, 1, false, true);
Test4( 3, 3, 1, false, true);
Test4( 3, 3, 1, false, true);
}
else
RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "skipping benchmarking (only %u CPU core available)\n", cCores);
}
}
return RTTestSummaryAndDestroy(g_hTest);
}
示例12: main
int main(int argc, char* argv[])
{
Test1();
Test2();
Test3();
Test4();
Test5();
Test6();
}
示例13: main
int main()
{
w.SetTimeScale(TimeScale::MILLI);
// Test suites
Test1();
Test2();
Test3();
Test4();
return 0;
}
示例14: main
int main(int agrc, char* argv[])
{
Test1();
Test2();
Test3();
Test4();
Test5();
Test6();
Test7();
return 0;
}
示例15: main
int
main(void)
{
Test0();
Test1();
Test2();
Test3();
#ifdef CLONE_THREAD
Test4();
#endif
exit(0);
}