Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Timing function execution
- X-seq: zsh-users 27317
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zach Riggle <zachriggle@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Timing function execution
- Date: Sat, 6 Nov 2021 19:43:53 +0100
- Archived-at: <https://zsh.org/users/27317>
- In-reply-to: <CAH+w=7ZmXgXXDrHUNgt3=F1vmcvt28XWOh13PQP51uYYHdVhOA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5=YX9v969sVNcVcpbb8R6e4EoyrAMpqpEDAnpSYQi9Sbw@mail.gmail.com> <CAH+w=7Z2jJqxSAa6sD_+jBEbDfHTfa_aMr_9WLfWG5T1OcCNFw@mail.gmail.com> <CAN=4vMrPTZ033Nm1GdSiTH7oA=TyS6PBOo7VpYtaaiYLoPBp7g@mail.gmail.com> <CAH+w=7aLZwYvN0_KOdf9=HcLBUtYzoHKjL4ck8tKCjau9qoduw@mail.gmail.com> <CAH+w=7brr8EjV=V8tV2weQ6DqT3eputT+UrDffRhTVtO0wcFDQ@mail.gmail.com> <CAH+w=7ZmXgXXDrHUNgt3=F1vmcvt28XWOh13PQP51uYYHdVhOA@mail.gmail.com>
On Sat, Nov 6, 2021 at 7:40 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Nov 6, 2021 at 11:35 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Glancing through builtin.c, "times" (based on library times(3)) may be
> > the answer?
> >
> > I had entirely forgotten the existence of that builtin.
>
> And (with apologies for the multiple follow-ups) I had also forgotten
> that you can run "time" with no arguments:
Does this mean that `time foo` could work for functions (or rather any
"list")? That would be nice.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author