I have got a script which takes some time to execute.
Eg. if the script is called test.sh
#!/bin/bash
<command1 to execute>
<command2 to execute>
<command3 to execute>
<command4 to execute>
.
.
.
.
<command n to execute>
At the end of the script I want to show the users the actual time(user NOT CPU) taken for the script to execute. I know of the time
command but where shall I put in the code for calculating the time.