I need to determine how long it takes for a script to execute within the actual script, then print this out. Is there any way of doing this?
The command 'time' can only be used from the unix prompt, e.g
# time <script_name>
I want to be able to have something in my script that records a start time, an end time when the script finishes, and then work out the elapsed time.
Thx.
The command 'time' can only be used from the unix prompt, e.g
# time <script_name>
I want to be able to have something in my script that records a start time, an end time when the script finishes, and then work out the elapsed time.
Thx.