fix time measuring bug in WorkloadMetricsManager