Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
To keep track of time on the motherboard, RTC costs (for the sake of it, the battery costs).
All sorts of high-precision timers are like a feature of the processor
Actually there are three main sources of time in the computer.
1. Real time clock. As the name says, it contains a battery and maintains the system time even when the computer is turned off. Accuracy is traditionally 1 second. More accurate time can be obtained by combining RTC and programmable timer.
2. Programmable timer - traditionally 18.2 ticks per second, but it can seem to be up to 1000. With each tick, it causes an interrupt. In multitasking operating systems like Windows and Linux, we cannot control the programmable timer, because it is used by the task scheduler, but a good API is written around it.
3. Processor cycle counter - for managing multimedia and games with a variable frame rate. It is the most accurate (by resolution) time source available, but also the most complex.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question