stat: move calc of latencies into show function