(十)pcl-common篇-time.h

#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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容