From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 249 invoked by alias); 7 Oct 2011 18:58:44 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16471 Received: (qmail 8711 invoked from network); 7 Oct 2011 18:58:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.43 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: References: From: Renato Botelho Date: Fri, 7 Oct 2011 15:58:06 -0300 Message-ID: Subject: Re: tcsh set time equivalent To: Mikael Magnusson Cc: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Oct 7, 2011 at 1:14 PM, Mikael Magnusson wrote: > On 7 October 2011 18:01, Renato Botelho wrote: >> On Fri, Sep 30, 2011 at 7:12 PM, Mikael Magnusson wr= ote: >>> On 30 September 2011 23:58, Renato Botelho wrote: >>>> Hello, >>>> >>>> I used to have a configuration on tcsh: >>>> >>>> set time=3D(60 "\ >>>> Time spent in user mode =A0 (CPU seconds) : %Us\ >>>> Time spent in kernel mode (CPU seconds) : %Ss\ >>>> Total time =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= : %Es\ >>>> CPU utilisation (percentage) =A0 =A0 =A0 =A0 =A0 =A0: %P\ >>>> Times the process was swapped =A0 =A0 =A0 =A0 =A0 : %W\ >>>> Times of major page faults =A0 =A0 =A0 =A0 =A0 =A0 =A0: %F\ >>>> Times of minor page faults =A0 =A0 =A0 =A0 =A0 =A0 =A0: %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=3D2, and ran a `find /usr -type l -name '*xxxx*'`, it t= ook >> 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 ther= e >> 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. Thank you --=20 Renato Botelho