Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Time-Option under tcsh available in zsh?



> Is the time-variable (or something similar) also available in zsh?
> In tcsh I use
> 
> set time='3 Time: %Uuser %Ssystem %Esec (=%P%%),  %X+%DkB  %I+%Oio %Fpf+%Ww'
> 
> which gives me information on all jobs which last longer than 3 seconds.
> How can I achieve this in zsh? (Did not find something in the man-pages). 

Use a combination of REPORTTIME and TIMEFMT (documentation in zshparam).

This is in zsh3.0, but I don't think it's changed in the recent past,
so it ought to be there in at least 2.6, and probably 2.5.



Messages sorted by: Reverse Date, Date, Thread, Author