예제 #1
0
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
예제 #2
0
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
예제 #3
0
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