import time


def _get_inference_time(model, sample):
    """Computes inference time for one call to get_suggestions."""
    start = time.time()
    model.get_suggestions(sample)
    end = time.time()
    return end - start