From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id BAA23640 for ; Tue, 19 Sep 1995 01:35:30 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA07662 (5.65c/Gatech-10.0-IDA for ); Mon, 18 Sep 1995 11:37:27 -0400 Received: by math (5.x/SMI-SVR4) id AA25494; Mon, 18 Sep 1995 11:31:26 -0400 Resent-Date: Mon, 18 Sep 95 16:32:58 +0100 Old-Return-Path: Message-Id: <1293.9509181532@pyro.swan.ac.uk> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: `times' format Date: Mon, 18 Sep 95 16:32:58 +0100 From: P.Stephenson@swansea.ac.uk X-Mts: smtp Resent-Message-Id: <"XKZrG2.0.GE6.D3PNm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/386 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu This is very minor... `times' unlike `time' doesn't give you two decimal places. Since the granularity is 1/60 second, it's barely warranted, but if ksh does I shouldn't see why we can't. *** Src/builtin.c.times Mon Sep 18 16:11:08 1995 --- Src/builtin.c Mon Sep 18 16:26:27 1995 *************** *** 5171,5177 **** } /* display a time, provided in units of 1/60s, as minutes and seconds */ ! #define pttime(X) printf("%ldm%lds",((long) (X))/3600,((long) (X))/60%60) /* times: display, in a two-line format, the times provided by times(3) */ --- 5171,5178 ---- } /* display a time, provided in units of 1/60s, as minutes and seconds */ ! #define pttime(X) printf("%ldm%ld.%02lds",((long) (X))/3600,\ ! ((long) (X))/60%60,((long) (X))*100/60%100) /* times: display, in a two-line format, the times provided by times(3) */ -- Peter Stephenson Tel: +44 1792 205678 extn. 4461 WWW: http://python.swan.ac.uk/~pypeters/ Fax: +44 1792 295324 Department of Physics, University of Wales, Swansea, Singleton Park, Swansea, SA2 8PP, U.K.