1import time
2start = time.process_time()
3# your code here
4print(time.process_time() - start)
1import time
2start_time = time.time()
3main()
4print("--- %s seconds ---" % (time.time() - start_time))
1#ok for whom looking for answer this one only work on linux
2#u can use this command in terminal to check script run time
3time python3 <script-name>