Beispiel #1
0
def test():
    for i in range(10):  # how many times I want to get data
        t1 = time.time()

        cortex = Cortex('./cortex_creds')
        asyncio.run(do_stuff(cortex))
        cortex.close()

        t2 = time.time()

        print(t2 - t1)
Beispiel #2
0
def test():
    cortex = Cortex('./cortex_creds')
    asyncio.run(do_stuff(cortex))
    cortex.close()
Beispiel #3
0
def test():
    print("hello world")
    cortex = Cortex('credentials.txt')
    asyncio.run(do_stuff(cortex))
    cortex.close()
def run():
    cortex = Cortex('./cortex_creds')
    asyncio.run(collect_data(cortex))
    cortex.close()
Beispiel #5
0
def thr2():
    cortex = Cortex('./cortex_creds')
    asyncio.run(do_stuff(cortex, 1))
    cortex.close()