05f2fa7a66fa66f13fed03c7c0ec223b6680b657
log-times-of-each-step
This is a blank script for if you want to log the times of each step of your Bash script.
Basically, it uses traps to write out runtime in seconds, the last command executed, and if applicable, the exit code. This all gets written to a file called time.log
It is useful if you want to gauge the time each command in your script takes to run.
Description
This is a blank script for if you want to log the times of each step of your Bash script.
Basically, it uses traps to write out runtime in seconds, the last command executed, and if applicable, the exit code. This all gets written to a file called time.log
It is useful if you want to gauge the time each command in your script takes to run.
Languages
Shell
100%