From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8311 invoked by alias); 7 Oct 2011 16:22:02 -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: 16469 Received: (qmail 2158 invoked from network); 7 Oct 2011 16:22:01 -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 209.85.212.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:date:message-id:subject:from:to :cc:content-type; bh=TmH1+lmcenGC74zezpdHQJkh1YZShdTKY1tReq801fY=; b=ZPQht24xo6SIil1tZkJHb055JNIbtLgn6pVe3nMjike9c+7TInzYy6ehzKolZi5K9L hjt5iK8hr4LrgAwQODCJLznJ+k8bAnxFKTaAI5I50O+78yRPXxJcNQkh7wnTLePF36h+ tStUcDtqzqKndoQM8VcA+1C8N/lo3oO5od8Cg= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 7 Oct 2011 18:14:31 +0200 Message-ID: Subject: Re: tcsh set time equivalent From: Mikael Magnusson To: Renato Botelho Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 7 October 2011 18:01, Renato Botelho wrote: > 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=(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. -- Mikael Magnusson