测试程序运行时间

#include 
#include 



	struct timeb timeStart;
	struct timeb timeEnd;

	ftime(&timeStart);
	ftime(&timeEnd);

	cout << "totaltime:" << timeEnd.time - timeStart.time << " second" << endl;

你可能感兴趣的:(c++)