timer library now with interrupts