zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@sunsite.dk
Subject: Re: Notification of time a command took
Date: Sun, 25 Apr 2004 18:32:34 +0200	[thread overview]
Message-ID: <20040425163234.GA10475@spiegl.de> (raw)
In-Reply-To: <87r7ucvypp.fsf@emptyhost.emptydomain.de>

> 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)


  parent reply	other threads:[~2004-04-25 16:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-25 15:55 Kai Grossjohann
2004-04-25 16:12 ` Thomas Köhler
2004-04-25 16:29 ` Wayne Davison
2004-04-25 16:32 ` Andy Spiegl [this message]
2004-04-25 16:44 ` Kai Grossjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040425163234.GA10475@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).