Shortest distance in time, or metric, time optimal