Writes a timeout event after a specified time period has elapsed, unless received any event resetting the timer.