VC++记录

1. 记录时间

#include <atlstr.h>
#include <time.h>
clock_t clockBegin, clockEnd; clockBegin = clock(); // do sth. clockEnd = clock(); double totaltime = (double)(clockEnd-clockBegin)/CLOCKS_PER_SEC; //输出时间是s CString csTemp; csTemp.Format("%f", totaltime); OutputDebugString(csTemp);

猜你喜欢

转载自www.cnblogs.com/kaituorensheng/p/9366565.html
今日推荐