time a line of code python code example
Example: time a line of code python
import time
start = time.process_time()
# your code here
print(time.process_time() - start)
import time
start = time.process_time()
# your code here
print(time.process_time() - start)