摘要: #include "stdafx.h"#include <time.h>#include <iostream>#define N 10000using namespace std;bool algorithm_count();int main (){time_t start,end;double diff=0.0;time(&start);if (algorithm_count())//运行被测代码{time(&end);diff=difftime(end,start);cout << "该代码段运行周期: &q 阅读全文
posted @ 2011-09-07 15:52 lalalalalalalalala 阅读(160) 评论(0) 推荐(0) 编辑