Anti-bounce timer