def __init__(self):
        """
        Creates an instance of the minibatch time metric.
        """
        super(MinibatchTime, self).__init__(
            reset_at="iteration", emit_at="iteration", mode="train"
        )

        Creates an instance of the minibatch time metric.
        
avalanche/evaluation/metrics/timing.py