def throughput_test(fn):
    def new(*args, **kw):
        ret = fn(*args, **kw)
        obj = args[0]
        obj.throughput_runs += 1
        if obj.throughput_runs == 100:
            obj.throughput_start = time.time()
        elif obj.throughput_runs == 1100:
            obj.throughput_stop = time.time()
            totaltime = obj.throughput_stop - obj.throughput_start
            print "********************************************"
            print "TOTAL: ", totaltime
            print "TPUT: ", 1000/totaltime, "req/s"
            print "********************************************"
            obj._graceexit(1)
        return ret
    return new
Unpause the solver for the specified duration.
dataset/ETHPy150Open denizalti/concoord/concoord/utils.py/throughput_test--crossover with--dataset/ETHPy150Open borg-project/borg/borg/fake.py/FakeSolverProcess.run_then_pause