VC测量程序运行时间

long begin = clock ();
printf ("begin: %ld\n", begin);

//要测量的程序段
long end = clock ();
printf ("end:   %ld\n", end);

 

posted @ 2012-11-28 19:18  长虹落日  阅读(211)  评论(0编辑  收藏  举报