内容表
关于
A timer can be used to execute a certain function periodically.
TimerInterface
A new timer instance is created with these static functions:
The created timer instance is controlled with these functions:
These observables are called on certain events:
-
ObservableTimerStarted: Notifies the observers that the timer has started.
-
ObservableTimerFinished: Notifies the observers that the timer has finished.
-
ObservableTimerOverload: Notifies the observers that the timer job took longer than the specified interval.
// This example creates a new timer that is executed every second.
// After ten executions, the timer stops itself.
// g_timer is just a maxon::TimerRef instance.