def time_sync_tolerance(time1: int, time2: int, tor: int = 1000):
    """ Comapre timestamp and utc_timestamp to seconds

    Args:
        time1 (int): [description]
        time2 (int): [description]
        tor (int, optional): [description]. Defaults to 5.

    Returns:
        bool: True if diff is under tor
    """
    if abs(time1 - time2) < tor:
        return True
    return False