How long to complete a command....
I am in the process of going through a Linux From Scratch build. Some packages take quite a long time to build. I am interested in finding out how long they take. Is there some command or chain of commands that will tell me that?
Something like: $ date && (LFS build commands here) && date The trick is to get the difference of those two dates in seconds, minutes, whatever. Any thoughts? |
well you can see how long by just using "time" as a stopwatch effectively....
time make etc.... |
OK. I've played with time a little....
but.... LFS uses a chain of commands like: patch -Np1 -i ../gawk.3.1.1-2.patch && ./configure --prefix=/usr --libexecdir=/usr/bin && make && make install So if I put time in front of the whole lot, will that time the whole thing or just the patch command? I'm looking for the time for all of the commands to execute. |
AFAIK....
time ( ./configure && make .... ) |
This is a script I use to display the duration of running several test scripts:
Code:
# display the duration in a logical string |
acid_kewpie - Could'nt get that to work.
Mik - your script works just fine. Just what I wanted. I'm still open to hearing about other ways to accomplish this. Thanks Mik & acid_kewpie |
All times are GMT -5. The time now is 07:44 PM. |