answered 0 years ago
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)