Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Notification of time a command took
- X-seq: zsh-users 7408
 
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
 
- To: zsh-users@xxxxxxxxxx
 
- Subject: Re: Notification of time a command took
 
- Date: Sun, 25 Apr 2004 18:32:34 +0200
 
- In-reply-to: <87r7ucvypp.fsf@xxxxxxxxxxxxxxxxxxxxxxxx>
 
- Kinfo: virscan ok
 
- Kinfo: NoRelay, NoSpam
 
- Kreccount: 1
 
- Mail-followup-to: zsh-users@xxxxxxxxxx
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- References: <87r7ucvypp.fsf@xxxxxxxxxxxxxxxxxxxxxxxx>
 
- Reply-by: Tue, 24 Jul 1782 19:02:00 +1000
 
> This seems to be a useful feature, and since zsh has the union of all
> features of all shells, surely it is possible in zsh, too.
You're right.  :-)
man zshparam
...
       REPORTTIME
              If  nonnegative,  commands whose combined user and system execution
              times (measured in seconds) are greater than this value have timing
              statistics printed for them.
...
So:
condor:~>grep -i time .zshrc
# show process statistics if cpu time is > 5 seconds
export REPORTTIME=5
Chau,
 Andy.
-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "You can't have everything.  Where would you put it?"   (Steven Wright)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author