We just deployed support for ideal time in Endurance. What you need is to set the competition type to Ideal Time and define the Ideal speed.
With this settings, competitors the nearest the ideal time (and of course speed) will be ranked best.
Instead of seeing the total time in the compact result view, the diff to the ideal time is visible instead. For full detail switch to full result view or do a print out of the results.