Fix latency metrics

Use the average time for the current period from a `FrontendTimingMetric`.

@stephanfowler 
Dos this risk division by zero - if the are no occurrences in the period?