From: Dan Nelson <dnelson@allantgroup.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Renato Botelho <rbgarga@gmail.com>, zsh-users@zsh.org
Subject: Re: tcsh set time equivalent
Date: Sat, 1 Oct 2011 21:07:52 -0500 [thread overview]
Message-ID: <20111002020752.GN9801@dan.emsphone.com> (raw)
In-Reply-To: <CAHYJk3SqK7hw=sF-50+Xc5=6PDsSjhdWO+NQpsiNL9Wrhf5DhA@mail.gmail.com>
In the last episode (Oct 01), Mikael Magnusson said:
> On 30 September 2011 23:58, Renato Botelho <rbgarga@gmail.com> wrote:
> > I used to have a configuration on tcsh:
> >
> > set time=(60 "\
> > Time spent in user mode (CPU seconds) : %Us\
> > Time spent in kernel mode (CPU seconds) : %Ss\
> > Total time : %Es\
> > CPU utilisation (percentage) : %P\
> > Times the process was swapped : %W\
> > Times of major page faults : %F\
> > Times of minor page faults : %R")
> >
> > With this, if a command that took over 60s to be executed, this summary
> > was showed after.
> >
> > Is there any equivalent function on zsh?
>
> There's REPORTTIME (just assign a number to it), but it measures cpu time,
> not wall clock.
tcsh measures CPU time too. Renato, you'll also want to set TIMEFMT to your
output format string; zsh understands all the escape sequences in your
string, so you can use it unmodified if you want, or add more.
--
Dan Nelson
dnelson@allantgroup.com
next prev parent reply other threads:[~2011-10-02 2:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-30 21:58 Renato Botelho
2011-09-30 22:12 ` Mikael Magnusson
2011-10-02 2:07 ` Dan Nelson [this message]
2011-10-07 16:01 ` Renato Botelho
2011-10-07 16:14 ` Mikael Magnusson
2011-10-07 18:58 ` Renato Botelho
2011-10-07 16:51 ` Bart Schaefer
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=20111002020752.GN9801@dan.emsphone.com \
--to=dnelson@allantgroup.com \
--cc=mikachu@gmail.com \
--cc=rbgarga@gmail.com \
--cc=zsh-users@zsh.org \
/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).