Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 204 Bytes

time_program.md

File metadata and controls

12 lines (8 loc) · 204 Bytes

timeit

import timeit

def test_func():
  print("hello world")

time = timeit(lambda: test_function(), number=100)
print("the average run time of the function is {} secs".format(time))