| 9 | namespace aimrt::examples::cpp::executor::timer_module { |
| 10 | |
| 11 | bool TimerModule::Initialize(aimrt::CoreRef core) { |
| 12 | core_ = core; |
| 13 | |
| 14 | timer_executor_ = core_.GetExecutorManager().GetExecutor("timer_executor"); |
| 15 | AIMRT_CHECK_ERROR_THROW(timer_executor_, "Can not get timer_executor"); |
| 16 | AIMRT_CHECK_ERROR_THROW(timer_executor_.SupportTimerSchedule(), |
| 17 | "timer_executor does not support timer schedule"); |
| 18 | |
| 19 | return true; |
| 20 | } |
| 21 | |
| 22 | bool TimerModule::Start() { |
| 23 | using namespace std::chrono_literals; |
nothing calls this directly
no test coverage detected