@contextlib.contextmanager
def TakeAtLeastNSeconds(time_s):
  timeout = PolledTimeout(time_s)
  yield
  while not timeout.HasExpired():
    time.sleep(timeout.remaining)
Average over the values of the specified field.
dataset/ETHPy150Open google/openhtf/openhtf/util/timeouts.py/TakeAtLeastNSeconds--crossover with--dataset/ETHPy150Open aparo/django-elasticsearch/django_elasticsearch/manager.py/QuerySet.average