synch options - flash duration
the flash will fire all of its output in 1/500 for full power, and perhaps shorter IE 1/800 at reduced power.
If the camera shutter is fully open for longer than 1/500 then it will see all of the light that the flash emits. If it is a lot longer - like 1/60, and there are other continuous bright sources of light around - IE a window, shooting outdoors, etc, that other light source will also have the chance to influence the image on the film. Usually the light emitted by the flash is quite a bit brighter, so the other light source's contributions are typically quite minimal.
For cameras that do not have in the lens leaf shutters, then the shutter speed selected will have to be slower than its 'synch' speed, the speed at which when both of its focal plan curtains are fully open. Otherwise, if shooting at faster than synch speed, only part of the shutter window will be open to allow light to the film while the flash is being discharged.