The present disclosure relates to methods, apparatuses, devices, and program products for measuring speed. The method comprises acquiring, from a
pressure sensor of an electronic device, first pressure information of the electronic device at a first moment when the electronic device is in a
stationary state. The method further comprises acquiring, from the
pressure sensor, second pressure information of the electronic device at a second moment when the electronic device is in a moving state. The method further comprises acquiring, from an acceleration sensor of the electronic device, acceleration information of the electronic device. In addition, the method comprises determining, based on the first pressure information, the second pressure information, and the acceleration information, an absolute speed of the electronic device at the second moment. By means of the method disclosed herein, the absolute speed of the electronic device can be accurately measured based on the
pressure sensor and the acceleration sensor of the electronic device, thereby making the
speed measurement more accurate and simple.