Clock Simulator Module
Role in the System
This module implements the internal clock for the computer. The principle files associated with this module are stats.h, stats.cc, timer.h, and timer.cc. These four files have been encapsulated together here due to their close relationship in the system. The timer generates a CPU interrupt every X milliseconds. The clock itself is implemented via four integer variables defined in the "Statistics" class:
- totalTicks
-
- idleTicks
- systemTicks
- userTicks