def _get_sleep_interval(self, start_time):
        elapsed = time.time() - start_time
        if elapsed < 0.05:
            return 0.01
        elif elapsed < 1.0:
            return 0.05
        elif elapsed < 10.0:
            return 0.1
        elif elapsed < 60.0:
            return 0.5
        return 1.0
Returns a step function of time to sleep in seconds before polling
dataset/ETHPy150Open cloudera/impyla/impala/hiveserver2.py/HiveServer2Cursor._get_sleep_interval