This works by calling a time function every second. If the CPU is used a lot, there will be a delay, increasing the numbers. However, as this is based on millisecond timings, the percentage cannot be accurate.