added some clock functionality for interrupts