The present disclosure provides a method for measuring a path length using a handheld electronic device comprising: repeatedly tumbling forward the handheld electronic device so as to cover the path to be measured sensing a rotational change of the handheld electronic device counting fractional increments of revolution of the handheld electronic device with respect to a starting position and estimating the path length based on the counted fractional increments of revolution.