10#ifndef STK_TIME_UTIL_H_
11#define STK_TIME_UTIL_H_
#define STK_ASSERT(e)
Runtime assertion. Halts execution if the expression e evaluates to false.
Namespace of STK package.
Ticks GetTicks()
Get number of ticks elapsed since kernel start.
int64_t Ticks
Ticks value.
Ticks m_next
Next trigger time in ticks.
uint32_t GetPeriod() const
Get currently configured trigger period.
void Restart()
Reset the trigger and start.
void SetPeriod(uint32_t period)
Change the trigger period while preserving phase.
uint32_t m_period
Trigger period in ticks. Modified only by SetPeriod(). Must be > 0.
bool Poll()
Check whether the scheduled trigger time has been reached.
PeriodicTrigger(uint32_t period, bool start=false)
Construct a PeriodicTrigger.