universal timer for embedded systems