'Gets the time elapsed since the call to :meth:`start_connect`.
:return: the elapsed time
:rtype: float
:raises urllib3.exceptions.TimeoutStateError: if you attempt
to get duration for a timer that hasn\'t been started.'

def get_connect_duration(self):

    if (self._start_connect is None):
        raise TimeoutStateError("Can't    get    connect    duration    for    timer    that    has    not    started.")
    return (current_time() - self._start_connect)
