def __init__(self, warmup_iter=3):
        """
        Args:
            warmup_iter (int): the number of iterations at the beginning to exclude
                from timing.
        """
        self._warmup_iter = warmup_iter
        self._step_timer = Timer()
        self._start_time = time.perf_counter()
        self._total_timer = Timer()

        Args:
            warmup_iter (int): the number of iterations at the beginning to exclude
                from timing.
        
video_chat_with_MOSS/models/grit_src/third_party/CenterNet2/detectron2/engine/hooks.py