def tuple_to_seconds(time_tuple):
    """ Takes a tuple and converts it to time in seconds.
        
    Parameters:
    time_tuple: tupe
        tuple containing (hours, minutes, sec, milliseconds).
    {hh, mm, ss) -> sec
    """
    if type(time_tuple) != tuple:
        raise TypeError('Must input a tuple containing hh, mm, ss, ms')
    hour = time_tuple[0] * 3600
    minutes = time_tuple[1] * 60
    sec = time_tuple[2]
    return hour + minutes + sec
