MCPcopy Create free account
hub / github.com/AimRT/AimRT / Reset

Method Reset

src/interface/aimrt_module_cpp_interface/executor/timer.h:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 Timer& operator=(const Timer&) = delete;
64
65 void Reset() override {
66 cancelled_ = false;
67 next_call_time_ = std::chrono::time_point_cast<std::chrono::system_clock::duration>(
68 executor_.Now() + period_);
69 ExecuteLoop();
70 }
71
72 void ExecuteTask() override {
73 if constexpr (std::is_invocable_v<TaskType>) {

Callers 1

CreateTimerFunction · 0.45

Calls 1

NowMethod · 0.45

Tested by

no test coverage detected