Q. Timers could be utilized to compute the current time. Provide a little description of how this could be accomplished.
Answer: A program could utilize the following approach to compute the current time using timer interrupts. The program could set a timer for a while in the future and go to sleep. When it is wake by the interrupt it could update its local state which it is using to keep track of the number of interrupts it has received thus far. It could then replicate this process of continually setting timer interrupts and updating its local state when the interrupts are actually raised.