tpTimer类
Utils
2025-07-05
介绍
定时器功能类
基础信息
头文件: | include <tpTimer.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 类型
enum TimerType {
PreciseTimer, CoarseTimer, VeryCoarseTimer
}
信号
信号名称 | 参数 | 描述 |
---|---|---|
timeout |
Public 成员函数
tpTimer(int32_t msec=100) | ||
---|---|---|
~tpTimer() | ||
isActive() const | ||
timerId() const | ||
setInterval(uint32_t msec) | ||
interval() const | ||
setTimerType(tpTimer::TimerType atype) | ||
timerType() | ||
start(int32_t msec) | ||
start() | ||
stop() | ||
sleep(const uint64_t &msec) |
成员枚举类型说明
enum tpTimer::TimerType
名称 | 值 | 描述 |
---|---|---|
PreciseTimer | 0 | |
CoarseTimer | 1 | |
VeryCoarseTimer | 2 |