How to record total run time of a script

Follow the instructions here: