Apollo 11.0
自动驾驶开放平台
apollo::perception::lidar::Timer类 参考

#include <lidar_timer.h>

apollo::perception::lidar::Timer 的协作图:

Public 成员函数

 Timer ()
 
void tic ()
 
double toc (bool reset=false)
 

详细描述

在文件 lidar_timer.h 第 24 行定义.

构造及析构函数说明

◆ Timer()

apollo::perception::lidar::Timer::Timer ( )
inline

在文件 lidar_timer.h 第 26 行定义.

成员函数说明

◆ tic()

void apollo::perception::lidar::Timer::tic ( )
inline

在文件 lidar_timer.h 第 27 行定义.

27{ _start = std::chrono::system_clock::now(); }

◆ toc()

double apollo::perception::lidar::Timer::toc ( bool  reset = false)
inline

在文件 lidar_timer.h 第 28 行定义.

28 {
29 auto time = std::chrono::system_clock::now();
30 std::chrono::duration<double, std::milli> dur = time - _start;
31 if (reset) {
32 tic();
33 }
34 return dur.count();
35 }

该类的文档由以下文件生成: