Use median for telemtric latencies

Please hold off merge.

This branch uses median instead of mean to give telemetric latencies.

The profiler is doing a little more work than with calculating the mean, and I'm not sure if we really need the median, or if the mean suffices. We'll see when trying to run this.