Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: time command with shell builtins
- X-seq: zsh-users 28744
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: time command with shell builtins
- Date: Mon, 23 Jan 2023 15:28:33 +0100
- Archived-at: <https://zsh.org/users/28744>
- In-reply-to: <CAN=4vMqSxEr-K1xg+fGc9kh2qfiZ31fy7hoDBRNHXXF6pH8eEg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- References: <Y86OR0DCpwfSYCXU@localhost> <CAN=4vMqSxEr-K1xg+fGc9kh2qfiZ31fy7hoDBRNHXXF6pH8eEg@mail.gmail.com>
- Reply-to: dominik.vogt@xxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:akaNkmWuWxY=;KaLwjFIAOTLXYxq+QO63R9KbaEl oFTX0v/vPaFKOaJlMXmb5AZpp96YQin8sCGeFoe6OXJutv6f13VtXKAUnOb5pESbfB8d9xlmO K7J4HaLDYrQx0vXDswstbS7dPtGdNNnhOuKErE1qiHGIVP6EDkzBfRmfSVa4WAdRpNR55dOtP uFMKTqYQqr2XmheNNVj0DdKxuAEwHH8mOibeV3gSJO7SVVYHFMsCq9qRbk3m9qW7p0UY2LLiz MnI71tHj1S3N4JZC36osi2oX4kkjFiuhPdJ6PwVrpKvjOch/Rp2mCjLaa7tXatSy8Sp0zMvcL E6LLxZicDVjw9ZmYolPiZuLtMvSWVO08VT0dmSExRAxEoL34LRolKe0vUN+wYcfVwTeCV8d0J H3K6opGtszn/m9rdQthnKr2+5va4iRyn+gSjFa08YajkJXmTjG0VBzfMxG2XuvzpN3nrIAqIN KgJ+ii9scE8Ik4wPXLcBtwtJXR0E8z/QjSW0cbVrohUR4a/5bIPM/aI5Z/ncyOF+vAV5D9Sur fdO0uj/enACpK7qXhZl04KdDDIEJyagycZHyCkt/lBMW0ZJtIZ0Jka+csgokldA+SweG0O+QY DAUwOOWgX+YrOB8Q4CWXBad7dDuitq4oYYn0zFSi88y3pNnFCDXUDXZnmQLHODMu4XuioJpOq JWHuBxVjDeYev/nYvMnE32X5yjq3ksiGLW6fgWzf3wnC/tdnY9/Bf8iHCcHdadZt5b0h+DRlq YDdg2I213efqrexQfFJ/q2q6ZGZXGwPGJni+GYpzLr5AbybAAWsz+CqKD3Li4EvB2VXKCuy4N v3m+xbaIhz+7pY++D7aYM3UqisbeNC2tpw4RcJ9EeohWpioWEovmlgbfxGL4nybe7wDcHa5St aJBk9xrpczJgCu4WfxIQ9gbr92lw548TJ3bTU9PMqjGFzF6gK+FhmAK/B2CiTAyJkYAYMgGop 3+t3AgHPnnt3/MAvmvL6ceWR7Ug=
On Mon, Jan 23, 2023 at 02:42:05PM +0100, Roman Perepelitsa wrote:
> On Mon, Jan 23, 2023 at 2:40 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> >
> > Is it possible to get timing statistics of shell builtins too?
> > Timing "echo" isn't very interesting, but timing loop constructs
> > would be:
> >
> > $ time while foo; do bar done
>
> This:
>
> % time ( while foo; do bar; done )
That wasn't really the question. Of course I can time a loop by
writing a different command, or by putting it in a pipe or file.
$ time echo foo | true
I just want to get timing statistics of loops either explicitly by
prepending "time" or implicitly with REPORTTIME.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author