Apollo 10.0
自动驾驶开放平台
apollo::cyber::PyRate类 参考

#include <py_time.h>

apollo::cyber::PyRate 的协作图:

Public 成员函数

 PyRate (uint64_t nanoseconds)
 
void sleep () const
 
void reset () const
 
uint64_t get_cycle_time () const
 
uint64_t get_expected_cycle_time () const
 

详细描述

在文件 py_time.h72 行定义.

构造及析构函数说明

◆ PyRate()

apollo::cyber::PyRate::PyRate ( uint64_t  nanoseconds)
inlineexplicit

在文件 py_time.h74 行定义.

74 {
75 rate_ = std::make_shared<Rate>(nanoseconds);
76 }

成员函数说明

◆ get_cycle_time()

uint64_t apollo::cyber::PyRate::get_cycle_time ( ) const
inline

在文件 py_time.h80 行定义.

80{ return rate_->CycleTime().ToNanosecond(); }

◆ get_expected_cycle_time()

uint64_t apollo::cyber::PyRate::get_expected_cycle_time ( ) const
inline

在文件 py_time.h81 行定义.

81 {
82 return rate_->ExpectedCycleTime().ToNanosecond();
83 }

◆ reset()

void apollo::cyber::PyRate::reset ( ) const
inline

在文件 py_time.h79 行定义.

79{ return rate_->Reset(); }

◆ sleep()

void apollo::cyber::PyRate::sleep ( ) const
inline

在文件 py_time.h78 行定义.

78{ return rate_->Sleep(); }

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