def get_stat(self, n_samp: int = 1000, reset: bool = False):
        """
        Returns average time (s) per n_samp samples processed

        :param reset: Reset counts?
        """
        sec_per_samp = self.total_time / self.total_samples

        if reset:
            self.total_samples = 0
            self.total_time = 0

        return sec_per_samp * n_samp

        Returns average time (s) per n_samp samples processed

        :param reset: Reset counts?
        
promptist/trlx/trlx/utils/__init__.py