How Do Faster Computers Not Track Time Faster Than Slower Ones?

Understanding Clock Speed and Time Tracking in Computers

At the heart of every computer lies a crucial component—the real-time clock (RTC), which maintains the system's time and date even when powered off. This clock uses a small CMOS button cell battery that ensures the system time remains accurate for decades. Furthermore, the RTC powers the NVRAM (non-volatile RAM) where BIOS settings are stored. When this cell is removed, the clock stops, highlighting the reliance on this external power source for accurate timekeeping.

Hardware Clock Sources and Clock Speed Adjustments

Changing the clock speed on a computer involves multiple steps and intricate adjustments. One essential step is choosing the hardware clock source. Commonly, this can be an onboard oscillator or an external one. Once the source is selected, the next step is setting a hardware register to the correct value for the oscillator's frequency.

Another crucial step is setting multipliers and dividers to achieve appropriate clock rates. This is necessary because, while the CPU can run at a higher frequency, some peripherals like RAM require slower speeds to operate correctly. Thus, the system needs to translate and control the clock frequency accurately to ensure proper functionality. A Turbo button in early PC clones was not intended to increase the CPU speed directly but to allow a non-Turbo mode to prevent compatibility issues with certain games.

The Role of Quartz Oscillators and Clock Speed Flexibility

Every computer and complex circuit employs at least one component responsible for synchronizing the electronic signals. This component is often a quartz oscillator. When current is fed to a quartz oscillator, it produces a precise signal with a fixed period. For instance, a quartz oscillator running at 16 MHz is said to be “clocked” at 16 MHz.

Complex components like CPUs, RAM, and CMOS chips are designed to support a range of clock speeds. These can be adjusted during assembly, and sometimes, users can customize the clock settings with modern processors. Older PCs were usually designed to support a fixed clock speed, often synchronized to match display frequency standards like NTSC or PAL. This means that applications written for a 4.77 MHz CPU would misbehave on a faster processor.

Interestingly, a European user could modify a computer's rendering times or compile times by booting the PC in NTSC mode, as these modes could run the CPU at a different clock speed, which might lead to different performance outcomes.

Timers and Consistent Speed

Despite the potential for varying clock speeds, computers do not run at maximum speed constantly. Instead, they use timers to maintain a consistent and well-defined clock speed. This is crucial for signal synchronization between different components. If a computer operates at an inconsistent speed, signals between components could be misread, causing the system to malfunction.

The IBM PC, being a more flexible platform, made overclocking a popular practice in the mid-1990s to early 2000s. Users would cool the CPU aggressively and set the highest possible clock speed. This led to variability in performance, and some users could experience significant speed boosts if their processor was of higher quality and properly cooled.

Conclusion

In summary, while faster computers can have a higher hardware clock speed, they still use a consistent and well-defined clock rate to ensure proper operation. The real-time clock and quartz oscillators play vital roles in maintaining accurate time and ensuring signal synchronization within the system. By understanding these core components and their interactions, one can appreciate the complexity and precision required for computer timekeeping.