More correct example of the time-driven model that uses the event queue to synchronize with the rest part of the model.