First time here? Check out the FAQ!
answered 2024-06-28 07:19:11 +0200
You can use time module for that purpose - like this:
time
import time start_time = time.time() # ...whatever code... end_time = time.time() print('Elapsed:', end_time - start_time)