Speed is defined as the distance covered over a period of time. Runners accelerate at the start of a race and may maintain a steady speed or accelerate again at the finish. Speedometers measure vehicle speed by connecting to a shaft that turns with the wheels. A magnet attached to the shaft spins and its movement is conveyed to a pointer through a spring-connected cup. Stopwatches were invented to time races and events. Light gates use beams to detect and time objects passing through them. Velocity refers to both the speed and direction of an object's motion. Scalar quantities only measure magnitude while vector quantities measure both magnitude and direction of movement.