#include <lidar_timer.h>
◆ Timer()
| apollo::perception::lidar::Timer::Timer |
( |
| ) |
|
|
inline |
◆ 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) {
33 }
34 return dur.count();
35 }
该类的文档由以下文件生成: