Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How can I time and record how long a certain process took? For example, I execute many jobs from a terminal and I am wondering exactly how long it took to do.
if you're starting em from scripts and you use bash, you could try using $SECONDS at the end of the script like: echo "$(basename $0) finished in $SECONDS"
well... i don't know how to time a process from the shell, but it's pretty easy to do in a program. failing anything else, you could write a small program that would execute a program and time it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.