Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Timing function execution



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