Atomic clocks keep time by measuring the frequency of electromagnetic radiation absorbed and emitted by atoms. The first atomic clock was invented in 1949 and was based on ammonia molecules. It was later improved using cesium atoms, which is the standard still used today. There are three main types of atomic clocks - cesium, hydrogen, and rubidium - which differ in the type of atom used. Cesium atomic clocks use a beam of cesium atoms separated by energy levels with a magnetic field, while rubidium clocks use a glass cell of rubidium gas. Atomic time is now defined as 9,192,631,770 Hz and is measured by the United States' main atomic clock located at NIST in Boulder