circuitpython/tests/bench/bench.py
2021-03-15 19:27:36 +05:30

12 lines
115 B
Python

import time
ITERS = 20000000
def run(f):
t = time.time()
f(ITERS)
t = time.time() - t
print(t)