def tick():
    global counter, st
    while True:
        time.sleep(2)
        ct = time.time()
        elapsed_s = st - ct

        mps = counter / elapsed_s

        print counter, "messages, per sec:", mps
dataset/ETHPy150Open ooici/pyon/prototype/speed/sspeed.py/tick/swapped operands of `-`