A thin gas of cesium atoms is released into the cavity where they are exposed to microwaves
A laser measures how many atoms have absorbed the microwaves, and an electronic feedback control system called a phase locked loop tunes the microwave oscillator until it is at the exact frequency that causes the atoms to vibrate and absorb the microwaves
Then the microwave signal is divided by digital counters to become the clock signal.
In mechanical clocks, the low Q of the balance wheel or pendulum oscillator made them very sensitive to the disturbing effect of the impulses of the escapement, so the escapement had a great effect on the accuracy of the clock, and many escapement designs were tried
The higher Q of resonators in electronic clocks makes them relatively insensitive to the disturbing effects of the drive power, so the driving oscillator circuit is a much less critical component.
This counts the pulses and adds them up to get traditional time units of seconds, minutes, hours, etc
It usually has a provision for setting the clock by manually entering the correct time into the counter.
In mechanical clocks this is done mechanically by a gear train, known as the wheel train
The gear train also has a second function; to transmit mechanical power from the power source to run the oscillator
There is a friction coupling called the 'cannon pinion' between the gears driving the hands and the rest of the clock, allowing the hands to be turned by a knob on the back to set the time.
In digital clocks a series of integrated circuit counters or dividers add the pulses up digitally, using binary logic
Often pushbuttons on the case allow the hour and minute counters to be incremented and decremented to set the time.
This displays the count of seconds, minutes, hours, etc
in a human readable form.
The earliest mechanical clocks in the 13th century didn't have a visual indicator and signalled the time audibly by striking bells
Many clocks to this day are striking clocks which strike the hour.
Analog clocks, including almost all mechanical and some electronic clocks, have a traditional dial or clock face, that displays the time in analog form with moving hour and minute hand
In quartz clocks with analog faces, a 1 Hz signal from the counters actuates a stepper motor which moves the second hand forward at each pulse, and the minute and hour hands are moved by gears from the shaft of the second hand.
Digital clocks display the time in periodically changing digits on a digital display.
Talking clocks and the speaking clock services provided by telephone companies speak the time audibly, using either recorded or digitally synthesized voices.