An oscillator is a device in a watch that produces an electrical signal that is used to regulate the timekeeping of the watch. It typically consists of a balance wheel, a balance spring, and a pallet fork. The balance wheel is connected to the pallet fork, which is then connected to the balance spring. As the balance wheel oscillates, it pushes and pulls the pallet fork, which causes the balance spring to oscillate. This creates a signal that the watch uses to regulate the timekeeping of the watch.