def METHOD_NAME(self, delay: Union[float, int], message: str = None):
    timeout_time = self._local_timeout_time or self._global_timeout_time
    message = message or self._message or "Timeout has occurred."
    if time.time() + delay >= timeout_time:
        raise TimeoutError(message)
    time.METHOD_NAME(delay)