clock_t start_laser = clock();
//*******测试的运行代码*******//
clock_t end_laser = clock();
std::cout << "end_laser - start_laser 花费了" << (double)(end_laser - start_laser) / CLOCKS_PER_SEC << "秒" << endl;
c++查看代码的运行时间
最新推荐文章于 2024-08-17 23:59:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)