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)
def test(): cortex = Cortex('./cortex_creds') asyncio.run(do_stuff(cortex)) cortex.close()
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()
def thr2(): cortex = Cortex('./cortex_creds') asyncio.run(do_stuff(cortex, 1)) cortex.close()