标签:div nbsp hit time_t 方法 blog ble clock nis
1.
#include <time.h> time_t begin_t = clock(); // to do time_t finish_t = clock(); cout<<"it cost " << (double )(finish_t - begin_t )/CLOCKS_PER_SEC <<" s"<<endl;
2.
#include <boost/timer.hpp>
boost::timer timer; // to do cout<<" cost time: "<<timer.elapsed() <<endl;
标签:div nbsp hit time_t 方法 blog ble clock nis
原文地址:http://www.cnblogs.com/xy123001/p/6879706.html