A program could use the following approach to compute the currenttime using timer interrupts. The program could set a timer for sometime in the future and go to sleep. When awakened by the interrupt,it could update its local state, which it uses to keep track of the numberof interrupts it has received thus far. It could then repeat this process ofcontinually setting timer interrupts and updating its local state when theinterrupts are actually raised.