How to determinate the total execution time of your script:

Put a new line at the beginning of your script which will start the counter:

To see how much time passed by since the start you can simply use: