How is the shutter speed measured?

It is measured in a fraction of a second. For example 1/500th of a second