The most elaborate types of ultrasonic flow meters average speed of sound over multiple paths in the pipe. The length of each path is precisely measured in the factory. Each path consists of an ultrasonic transducer at one end and a sensor at the other. The meter creates a 'ping' with the transducer and measures the time elapsed before the sensor receives the sonic pulse. Some of these paths point upstream so that the sum of the times of flight of the sonic pulses can be divided by the sum of the flight lengths to provide an average speed of sound in the upstream direction. This speed differs from the speed of sound in the gas by the velocity at which the gas is moving in the pipe. The other paths may be identical or similar, except that the sound pulses travel downstream. The meter then compares the difference between the upstream and downstream speeds to calculate the velocity of gas flow.