simple timer library for microcontroller / embedded system