The program that calculates time always knows the CPU speed as well. If you have a constant speed of, say, 1 GHz, you know it takes one second to run through a billion cycles. When the CPU is throttled to, say, 500 MHz, the program knows that now it takes only half a billion cycles until a second has elapsed. This may or may not happen very fast and all the time, but it all stays in sync.
Latest Answers