An accelerometer will just measure the time is takes to go from one speed to another speed, not the distance. It has no way of knowing how far it has traveled unless it is constantly accelerating and decelerating.