From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5249 invoked by alias); 30 Sep 2011 22:19:17 -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: 16458 Received: (qmail 3008 invoked from network); 30 Sep 2011 22:19:15 -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.220.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:date:message-id:subject:from:to :cc:content-type; bh=oqb4/Qew83WiXs93H4CQnnxcdNSpQqyi1D+BcUUTwqs=; b=Ev4mGvzWDjOKy0+br9x497WoQ+PvU3zfZv05vr9coFc0JEE+LSxW9t78NYs9f4U+hW rBuUC4RxrflZG1+g3GJWkxXDi3pcHBRE8eKQg3TqhRwo8OlI9Li/ubwUPNEpHxOgJv6N iYa7o9saHSOwHDnRvnRqNM3OqGlU7H60s9Q94= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 1 Oct 2011 00:12:40 +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 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. -- Mikael Magnusson