Hi,
Have a look at Darrell's Instant Interrupt routines, you'll find them on his web-site. Then look specifically at the Timer template that he has there. That should get you started.