How long does a clock battery last?

About 3 years, it would seem. The battery that I put in the small clock on a shelf in the living room appears to have died just before 5 PM. I put that battery in nearly three years ago and haven’t had to change it since.