def METHOD_NAME(self) -> float:
    """Send message over UDP.
    Returns:
        time taken
    """
    start = time.time()
    message = None
    if not self.initialized:
        message = self.construct_start_message()
        self.initialized = True
    else:
        message = self.construct_end_message()
    self.send_UDP_message(message)
    end = time.time()
    return end - start