예제 #1
0
def runq1(i, return_dict):
    start = clock()
    output = question01(i)
    end = clock()
    diff = end - start
    return_dict['output'] = output
    return_dict['diff'] = diff
예제 #2
0
def runq1(i, return_dict):
    start = clock()
    output = question01(i['initialLevelOfDebt'], i['interestPercentage'],
                        i['repaymentPercentage'])
    end = clock()
    diff = end - start
    return_dict['output'] = output
    return_dict['diff'] = diff
예제 #3
0
def runq1(q1input, return_dict):
    start = clock()
    i = json.loads(q1input.replace(" ", ""))
    output = question01(i['initialLevelOfDebt'], i['interestPercentage'], i['repaymentPercentage'])
    end = clock()
    diff = end - start
    return_dict['output'] = output
    return_dict['diff'] = diff