auto t_start=std::chrono::high_resolution_clock::now();
label= readImageNetLabel(fileDir);
auto t_end=std::chrono::high_resolution_clock::now();
float total_cost=std::chrono::duration<float,std::milli>(t_end-t_start).count();
std::cout<<"total_cost: "<<total_cost<<" ms."<<std::endl;
计算函数执行时间chrono
最新推荐文章于 2024-07-17 00:24:08 发布