circuitpython/tests/internal_bench/bench.py
2021-05-03 14:01:18 -07:00

12 lines
115 B
Python

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