universal timer for embedded system