It's time to take a look at everything related to time in the QNX Neutrino RTOS.
We'll see how and why you'd use timers and the theory behind them.
Then we'll take a look at getting and setting the realtime clock.
Note:
This chapter uses a ticksize of 10 ms, but QNX Neutrino now
uses a 1 ms ticksize by default on most systems.
This doesn't affect the substance of the issues being discussed.
Clocks and timers
Let's look at a typical system, say a car. In this car, we have a bunch of programs, most of which are running at different priorities. Some of these need to respond to actual external events (like the brakes or the radio tuner), while others need to operate periodically (such as the diagnostics system).
Using timers
Having looked at all this wonderful theory, let's turn our attention to some specific code samples to see what you can do with timers.
Advanced topics
Now that we've seen the basics of timers, we'll look at a few advanced topics: