def __init__(self, print_every, name=None):
        """
        Args:
            print_every(int): interval to print.
            name(str): name to used when print.
        """
        self.cnt = 0
        self.print_every = int(print_every)
        self.name = name if name else 'IterSpeed'

        Args:
            print_every(int): interval to print.
            name(str): name to used when print.
        
tensorpack/utils/timer.py