Fix latency calculation.

Refs #5050