The options of timer
更多...
#include <timer.h>
|
uint32_t | period = 0 |
| The period of the timer, unit is ms max: 512 * 64 min: 1
|
|
std::function< void()> | callback |
| The task that the timer needs to perform
|
|
bool | oneshot |
| True: perform the callback only after the first timing cycle False: perform the callback every timed period
|
|
The options of timer
在文件 timer.h 第 32 行定义.
◆ TimerOption() [1/2]
apollo::cyber::TimerOption::TimerOption |
( |
uint32_t |
period, |
|
|
std::function< void()> |
callback, |
|
|
bool |
oneshot |
|
) |
| |
|
inline |
Construct a new Timer Option object
- 参数
-
period | The period of the timer, unit is ms |
callback | The task that the timer needs to perform |
oneshot | Oneshot or period |
在文件 timer.h 第 40 行定义.
uint32_t period
The period of the timer, unit is ms max: 512 * 64 min: 1
bool oneshot
True: perform the callback only after the first timing cycle False: perform the callback every timed ...
std::function< void()> callback
The task that the timer needs to perform
◆ TimerOption() [2/2]
apollo::cyber::TimerOption::TimerOption |
( |
| ) |
|
|
inline |
Default constructor for initializer list
在文件 timer.h 第 47 行定义.
◆ callback
std::function<void()> apollo::cyber::TimerOption::callback |
The task that the timer needs to perform
在文件 timer.h 第 57 行定义.
◆ oneshot
bool apollo::cyber::TimerOption::oneshot |
True: perform the callback only after the first timing cycle False: perform the callback every timed period
在文件 timer.h 第 63 行定义.
◆ period
uint32_t apollo::cyber::TimerOption::period = 0 |
The period of the timer, unit is ms max: 512 * 64 min: 1
在文件 timer.h 第 54 行定义.
该结构体的文档由以下文件生成: