美文网首页
(十)pcl-common篇-time.h

(十)pcl-common篇-time.h

作者: GoodTekken | 来源:发表于2022-03-03 11:38 被阅读0次
#include<pcl/point_cloud.h>
#include<pcl/point_types.h>
#include<pcl/visualization/pcl_visualizer.h> //cout endl

#include <pcl/common/time.h>

typedef pcl::PointXYZ PointT;

//定义测量在代码块中花费的时间的方法

int main()
{
    pcl::StopWatch stopWatch;
        //......
        //运行的代码块
        //......
    double milliseconds = stopWatch.getTime();

    system("pause");
    return 0;
}

参考文章:
http://pointclouds.org/documentation/common_2time_8h.html
http://pointclouds.org/documentation/common_2time_8h_source.html

相关文章

网友评论

      本文标题:(十)pcl-common篇-time.h

      本文链接:https://www.haomeiwen.com/subject/gpwyrrtx.html