def has_elapsed(self, expected_delay: float, tolerance: float=0.1) -> bool:
    elapsed = (self._get_current_time() - self._start_time)
    return (abs((expected_delay - elapsed)) <= (expected_delay * tolerance))
def has_elapsed(self, expected_delay: float, tolerance: float=0.1) -> bool:
    elapsed = (self._get_current_time() - self._start_time)
    return (abs((expected_delay - elapsed)) <= (expected_delay * tolerance))