add a timer for benchmark pathfinder algo