setTimerCyclic
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
void setTimerCyclic(msTimer t, long firstDuration, long period); // form 1void setTimerCyclic(msTimer t, long period); // form 2void setTimerCyclic(timer t, int64 periodInNs); // form 3
Method Syntax (Dynamic)
void msTimer::setCyclic(long firstDuration, long period);void msTimer::setCyclic(long period);void timer::setCyclic(int64 periodInNs);
Description
Sets a cyclical timer. With form 2, firstDuration is implicitly the same as period, i.e. the timer runs precisely according to period the first time.Parameters
- t: The timer to be set.
- firstDuration: Time in milliseconds until the timer runs out for the first time.
- period: Time in milliseconds in which the timer is restarted in case of expiration.
- periodInNs: Time in nanoseconds in which the timer is restarted in case of expiration.