Track task value serialisation time in TaskMetrics.