Shortest path timing returns number of times shortest path function was called