take threads into account for latency measurement