You can use the time command to measure the execution time of a command or script. For example,
time ./myscript.sh