From: hoh@approve.se (Goran Larsson)
To: zsh-workers@math.gatech.edu
Subject: time builtin
Date: Mon, 27 Jan 1997 21:49:40 +0100 (MET) [thread overview]
Message-ID: <m0voxzo-000X3aC@lorelei.approve.se> (raw)
I just observed this broken behaviour in 3.0.0 and 3.1.0.
The real time reported by builtin time (%E) is almost
always less than %U + %S. A quick test shows that this
behaviour is not present in 2.6-beta13.
Now printtime() in 2.6-beta13 had this code:
if (percent > 100)
percent = 100; /* just to make it look right */
but that was removed in 3.0.0. Reinserting those two lines
in 3.0.0 obviously ``fixes'' the problem, or perhaps it is
more accurate to say that it hides the real problem again.
Is it possible to fix this, or are the times here just to
close to the resolution provided by the kernel?
$ echo $ZSH_VERSION
3.0.0
$ echo $OSTYPE
sunos4.1.4
$ echo $TIMEFMT
%*E real %*U user %*S system %P (%J)
$
$ time ls
adapter.gif hpdat
0.048 real 0.017 user 0.033 system 103% (ls)
adapter.gif hpdat
$ time ls
adapter.gif hpdat
0.001 real 0.000 user 0.017 system 2810% (ls)
$ time ls
adapter.gif hpdat
0.048 real 0.017 user 0.033 system 103% (ls)
$ time ls
adapter.gif hpdat
0.001 real 0.017 user 0.000 system 2692% (ls)
$ time ls
adapter.gif hpdat
0.021 real 0.033 user 0.017 system 236% (ls)
$ time ls
adapter.gif hpdat
0.001 real 0.000 user 0.033 system 5555% (ls)
$ time ls
adapter.gif hpdat
0.035 real 0.000 user 0.033 system 93% (ls)
$ time ls
adapter.gif hpdat
0.001 real 0.000 user 0.017 system 2741% (ls)
$
--
Goran Larsson mailto:hoh @ approve . se
I was an atheist, http://home1.swipnet . se/%7Ew-12153/
until I found out I was God.
next reply other threads:[~1997-01-27 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-27 20:49 Goran Larsson [this message]
1997-01-27 22:02 ` Zoltan Hidvegi
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=m0voxzo-000X3aC@lorelei.approve.se \
--to=hoh@approve.se \
--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).