Every clock counts the vibrations of an oscillator to measure time. The stability of that oscillator determines the accuracy and the holdover.
The types range from simple quartz crystals to temperature-compensated (TCXO), oven-stabilised (OCXO) and atomic (rubidium) oscillators.