Add allreduce timer.