On 14/03/07, John Summerfield <debian@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Will McDonald wrote: > On 14/03/07, John Summerfield <debian@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> Ryan Simpkins wrote: >> > >> > Am I using time right to measure it? >> No, you're timing the cat only. > > I don't think that's the case, you know. If I run the following: [summer@bilby ~]$ time sleep 10s;sleep 10s real 0m10.011s user 0m0.000s sys 0m0.003s [summer@bilby ~]$ time sleep 10s|sleep 10s real 0m10.002s user 0m0.001s sys 0m0.003s [summer@bilby ~]$ time sleep 10s | time sleep 10s 0.00user 0.00system 0:09.99elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+150minor)pagefaults 0swaps real 0m10.011s user 0m0.000s sys 0m0.006s [summer@bilby ~]$
I sit corrected, thanks John. A subshell appears to show the expected behaviour... [wmcdonald@stella ~]$ time $(sleep 10s; sleep 10s) real 0m20.011s user 0m0.001s sys 0m0.006s Will. _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos