In Bash shell, is there a simple way for me to monitor the time taken to run a script and output the time taken?
Answer
Yes.
time script
Where script
is the script to monitor the time for.
For instance, time find ~
will output something like this (Depending on the size of your home directory, that is):
real 0m49.139s
user 0m0.663s
sys 0m4.129s
No comments:
Post a Comment