From: P.Stephenson@swansea.ac.uk
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: `times' format
Date: Mon, 18 Sep 95 16:32:58 +0100 [thread overview]
Message-ID: <1293.9509181532@pyro.swan.ac.uk> (raw)
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 <P.Stephenson@swansea.ac.uk> 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.
reply other threads:[~1995-09-18 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1293.9509181532@pyro.swan.ac.uk \
--to=p.stephenson@swansea.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).