测试一个函数跑了多少秒钟
摘要:
#include <stdio.h>#include <time.h> clock_t start, stop;/*clock_t 是clock()函数返回的变量类型*/double duration;/*记录被测函数运行时间,以秒为单位*/ int main() { start = clock() 阅读全文
posted @ 2023-03-01 16:02 messing 阅读(24) 评论(0) 推荐(0)
浙公网安备 33010602011771号