Just as a grandfather clock  relies on the constant swinging back and forth of a pendulum  under gravity, the tick tock of an atomic clock is maintained by the transition  between two energy levels of an atom.