版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/dyx810601/article/details/81136313
#include <time.h>
int main()
{
clock_t start,end;
start=clock();
//To do
end=clock();
printf("totile time=%f\n",(float)(end-start)*1000/CLOCKS_PER_SEC);
}