'Get the response time that a certain number of percent of the requests
finished within.
Percent specified in range: 0.0 - 1.0'

def get_response_time_percentile(self, percent):

    num_of_request = int((self.num_requests * percent))
    processed_count = 0
    for response_time in sorted(six.iterkeys(self.response_times), reverse=True):
        processed_count += self.response_times[response_time]
        if ((self.num_requests - processed_count) <= num_of_request):
            return response_time
