timing multiple commands

Peter Hessler phessler at theapt.org
Fri Jun 2 02:59:18 PDT 2006


time sh -c "echo hi && cat blah"

That times how long it takes for sh to finish, and sh runs those commands.  


On Fri, 2 Jun 2006 13:52:24 +1000
"Craig Hammond" <Craig at sbisolutions.com.au> wrote:

: Hi,
: How do I measure the time of multiple commands.
:  
: eg, I want to measure how long it takes to compile a kernel.
:  
: If I do:
:     time make depend && make
:  
: The time command gives me how long it takes to do the make depend, not
: the combined
: time of  make depend && make.
:  
: I can put the two command in a shell script and time it, but I was
: trying to find an easy
: way I could just do it at the command line.
:  
: Thanks,
: Craig.


-- 
The porcupine with the sharpest quills gets stuck on a tree more often.


More information about the Openbsd-newbies mailing list