#include额外讲解#include using namespace std; int main(){ pcl::StopWatch time; //要测试的代码块 //............ cout << " time " << time.getTimeSeconds(); return 0; }
构造函数
StopWatch () : start_time_ (std::chrono::steady_clock::now())
{
}
重置时间
inline void
reset ()
{
start_time_ = std::chrono::steady_clock::now();
}



