当前位置:网站首页>c的时间函数算效率

c的时间函数算效率

2022-06-27 07:35:00 #math.h

#include<time.h>
clock_t t;
t=clock()-t;//求时间差 
printf("用时:%lf秒\n",((float)t)/CLOCKS_PER_SEC); //转换成秒单位 
// CLOCKS_PER_SEC 一秒包含的毫秒数 
log10(n)/log10(2) //log2(n)
原网站

版权声明
本文为[#math.h]所创,转载请带上原文链接,感谢
https://blog.csdn.net/gem12581/article/details/103455199