1.
#includetime_t begin_t = clock();// to do time_t finish_t = clock();cout<<"it cost " << (double )(finish_t - begin_t )/CLOCKS_PER_SEC <<" s"<
2.
#include
boost::timer timer; // to do cout<<" cost time: "<<
本文共 304 字,大约阅读时间需要 1 分钟。
1.
#includetime_t begin_t = clock();// to do time_t finish_t = clock();cout<<"it cost " << (double )(finish_t - begin_t )/CLOCKS_PER_SEC <<" s"<
2.
#include
boost::timer timer; // to do cout<<" cost time: "<<
转载于:https://www.cnblogs.com/xy123001/p/6879706.html