From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 634 invoked by alias); 2 Oct 2011 02:17:42 -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: 16461 Received: (qmail 19094 invoked from network); 2 Oct 2011 02:17:30 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at dan.emsphone.com does not designate permitted sender hosts) Date: Sat, 1 Oct 2011 21:07:52 -0500 From: Dan Nelson To: Mikael Magnusson Cc: Renato Botelho , zsh-users@zsh.org Subject: Re: tcsh set time equivalent Message-ID: <20111002020752.GN9801@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Sat, 01 Oct 2011 21:07:53 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 In the last episode (Oct 01), Mikael Magnusson said: > On 30 September 2011 23:58, Renato Botelho 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. tcsh measures CPU time too. Renato, you'll also want to set TIMEFMT to your output format string; zsh understands all the escape sequences in your string, so you can use it unmodified if you want, or add more. -- Dan Nelson dnelson@allantgroup.com