Clocks and timers

Updated: May 06, 2022

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). In this section, we'll explain how clocks and timers can help us achieve this.