Clock using interrupts