A clock calibration system is described herein. The clock calibration system may be implemented in a medical device to control timing of an action performed by the medical device. The clock calibration system may include a processing device coupled to a clock oscillator and a reference oscillator.