![]() |
RMVL
1.0.0
RoboMaster Vision Library
|
类 | |
| class | rm::Timer |
| 计时器 更多... | |
函数 | |
| template<typename Tp , typename Enable = typename std::enable_if<std::is_same<Tp, std::string>::value || std::is_same<Tp, int64_t>::value>::type> | |
| Tp | rm::getSystemTick () |
| 获取当前系统时间 更多... | |
| void | rm::syncWait (int64_t time_length) |
| 同步定时,当前进程挂起time_length时长后,再继续当前进程 更多... | |
| template<typename Callable , class... Args> | |
| void | rm::asyncWait (int after, Callable &&fn, Args &&...args) |
| 异步定时,另外开一个线程,在定时time_length ms后执行某个函数 更多... | |
| void rm::asyncWait | ( | int | after, |
| Callable && | fn, | ||
| Args &&... | args | ||
| ) |
#include <rmvl/core/timer.hpp>
异步定时,另外开一个线程,在定时time_length ms后执行某个函数
| Callable | 可调用对象 |
| Args | 可调用参数 |
| [in] | after | 定时时长 |
| [in] | fn | 可调用对象 |
| [in] | args | 函数的参数 |
| Tp rm::getSystemTick | ( | ) |
#include <rmvl/core/timer.hpp>
获取当前系统时间
| Tp | 可选类型,std::string 或 int64_t |
| void rm::syncWait | ( | int64_t | time_length | ) |
1.9.1