From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25349 invoked by alias); 7 Oct 2011 16:01:39 -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: 16468 Received: (qmail 18829 invoked from network); 7 Oct 2011 16:01:34 -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.171 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=Z/KXIqclZ3cChBsCw4KLSPaSlKPNSUNcdGXXlY/pu1U=; b=aj3FReg3c3fxFkp7CW4tx0YesuHTLwt6KPlh2x67s91+PaHAMZVCSkPbvl6ZNGB31h Kql0Gm2USRMBi1VKKaLKl3j2rMWt5EbAyKQoIK4RTknisvrrnqZWaA4UdAAA3HkL2ES1 vAEeJPbLjLxxqDxnG5c9eLzkHDolW1dc3vZmA= MIME-Version: 1.0 In-Reply-To: References: From: Renato Botelho Date: Fri, 7 Oct 2011 13:01: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, Sep 30, 2011 at 7:12 PM, Mikael Magnusson wrote= : > 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 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 Regards --=20 Renato Botelho