You could also do the following to compute the overhead of the timing function:
time_start = time.perf_counter()
time_end = time.perf_counter()
execution_time = time_end - time_start