#include <time.h>
clock_t start,end;
在开始计时的地方写:start = clock();
在结束的地方写:end = clock();
时间等于:t=(end - start)/CLOCKS_PER_SEC;
单位是秒...
利用VC的api函数 settimer吧,建立一个定时器,然后响应定时器的消息,getlocaltime函数,获得时间,wsprintf函数,转化为字符串,然后输出就可以了。...
更新时间:2021-11-15标签: 计时器源代码VC 全文阅读