当前位置: 代码迷 >> 综合 >> C++使用<ctime>计时
  详细解决方案

C++使用<ctime>计时

热度:93   发布时间:2024-01-30 02:14:35.0

C++计时

代码片段精简自视觉SLAM十四讲-slambook2/ch3/useEigen/eigenMatrix.cpp

#include <iostream>
#include <ctime>
using namespace std;
clock_t time_stt = clock();
//Your code here
cout<<"time of normal inverse is "<<1000*(clock()-time_stt)/(double)CLOCKS_PER_SEC<<"ms"<<endl;//单位为毫秒