專利摘要 | This invention provides a method of automatically adjusting interrupt frequency. The following steps are provided. First, a computer system is provided with an operating system able to deliver a plurality of interrupts with a first interrupt frequency. A counter is used to count a number of occurrences of the interrupt until the number reaches a predetermined number, and then the counter is reset to zero. The predetermined number is divided by the first interrupt frequency to obtain a product, and calculate an error between the product and an actual period of time elapsed for the predetermined number of interrupts is calculated. Lastly, the invention detects whether the error exceeds a predetermined range and adjusting the first interrupt frequency to limit the error within said predetermined range. |