7#ifndef MFRAME_5764966F_889C_4856_97F7_96396168CDD2
8#define MFRAME_5764966F_889C_4856_97F7_96396168CDD2
15#include "./../func/Runnable.h"
16#include "./../lang/Object.h"
void delay(int milliseconds) const
函數 delay 等待內核滴答中指定的時間段。 對於1的值,系統等待直到下一個計時器滴答發生。 實際時間延遲最多可能比指定時間少一個計時器滴答聲,即在下一個系統滴答聲發生之前立即調用 osDelay(1...
Definition mframe/src/sys/Timer.h:28
virtual bool isRunning(void)
計時器是否正在運作
virtual ~Timer(void) override
Destroy the Timer object.
virtual bool scheduleAtFixedRate(mframe::func::Runnable &task, uint32 delay)
virtual bool schedule(mframe::func::Runnable &task, uint32 delay)
Schedules the specified task for execution after the specified delay.
Timer(void)
Construct a new Timer object.
virtual bool cancel(void)
Cancels this timer task. If the task has been scheduled for one-time execution and has not yet run,...