:type max_value int

def init_timer(self, max_value):
    """
    :type max_value int
    """
    self.__max_value = max_value
    self.__prev_tick = time.time()
    self.__unit_per_sec = 0
    self.__unit_per_sec_prev = 0