def runq2(i, return_dict): start = clock() output = question02(i['risk'], i['bonus'], i['trader']) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff
def runq2(i, return_dict): start = clock() output = question02(i['cashFlowIn'], i['cashFlowOut']) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff
def runq2(q2input, return_dict): start = clock() i = json.loads(q2input.replace(" ", "")) output = question02(i['risk'], i['bonus'], i['trader']) end = clock() diff = end - start return_dict['output'] = output return_dict['diff'] = diff