1import time
2begin = time.time()
3''' your script here '''
4time.sleep(1) # store end time
5end = time.time() # total time taken
6print(f"Total runtime of the program is {end - begin}")
7# https://www.geeksforgeeks.org/python-measure-time-taken-by-program-to-execute/