#include <stdio.h>
#include <time.h>
int main( )
{
long start,end;
start = clock();
//测试的程序段
end = clock();
printf("%ld\n",start-end);//单位:毫秒
return 0;
}
C语言测试代码运行时间
最新推荐文章于 2024-07-05 20:08:58 发布
#include <stdio.h>
#include <time.h>
int main( )
{
long start,end;
start = clock();
//测试的程序段
end = clock();
printf("%ld\n",start-end);//单位:毫秒
return 0;
}
944