Fix latency metrics

Use the average time for the current period from a `FrontendTimingMetric`.

@stephanfowler