Zsh Mailing List Archive
Messages sorted by:
Re: tcsh set time equivalent
- X-seq: zsh-users 16471
- From: Renato Botelho <rbgarga@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: tcsh set time equivalent
- Date: Fri, 7 Oct 2011 15:58:06 -0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ZIETHqc01OxDg3qVc/waWJ7Dw5I/zS6/6bljhsUYfR4=; b=rwAfP3MrdGk4ZTTX52cMTz+64WTE1N36FwfluXqn6FYM84cCTGjavh5/iQOqXKL96T OeRrnLUfFaeYDOW2Ge8O3pAlnEzgtS2o1/Y4ZMx4CJUkGrFi4WezkB8T6zz6VVNcEZgE JlDLVGW1HUSpRnxDkxyn2Ef8525LiCkmeC4ek=
- In-reply-to: <CAHYJk3T7Bgf15z06vhmrUHngZM9FvCOZtJxOhbNQD-4ewQybsA@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAESiWk=f2GT=vuSCxDiYfGDG5-f5z_COD30-wT-Dd8Vyu7zUWg@mail.gmail.com> <CAHYJk3SqK7hw=sF-50+Xc5=6PDsSjhdWO+NQpsiNL9Wrhf5DhA@mail.gmail.com> <CAESiWk=9no=J0MQxyCnyWQpjNeZs5fC6xpGF=zHrpH8wSWv28A@mail.gmail.com> <CAHYJk3T7Bgf15z06vhmrUHngZM9FvCOZtJxOhbNQD-4ewQybsA@mail.gmail.com>
On Fri, Oct 7, 2011 at 1:14 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 7 October 2011 18:01, Renato Botelho <rbgarga@xxxxxxxxx> wrote:
>> On Fri, Sep 30, 2011 at 7:12 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>>> On 30 September 2011 23:58, Renato Botelho <rbgarga@xxxxxxxxx> 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.
>> Hello Mikael,
>> I set REPORTTIME=2, and ran a `find /usr -type l -name '*xxxx*'`, it took
>> about 20 seconds do execute and at the end, it didn't show anything.
>> I saw zshparams manpage and this parameter is there as you said. Is there
>> anything else i need to consider?
>> I'm using zsh 4.3.11 on fedora 15
> Like I said, it uses cpu time, not wall clock time. I can't imagine
> find uses 2 whole cpu seconds while looking for files, so it makes
> sense that it wouldn't show up.
You are right, my bad. It's working fine.
Messages sorted by: