Timers
Timers allows you to postpone performing an action for particular time.
To use a timer:
- Create a timer by sending output message to the kernel with particular
timer identifier
- Wait for input message from the timer, e.g. by using loop with
WAIT command
- Check device, message type etc. and if it is this message from the timer:
- Check the timer identifier
- Do what you want to do :)
- Create new timer if you want to get this message after next
period of time (timer works only once by sending single message)