Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Timing function execution
- X-seq: zsh-users 27314
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Cc: Zach Riggle <zachriggle@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Timing function execution
- Date: Sat, 6 Nov 2021 11:17:18 -0700
- Archived-at: <https://zsh.org/users/27314>
- In-reply-to: <CAN=4vMrPTZ033Nm1GdSiTH7oA=TyS6PBOo7VpYtaaiYLoPBp7g@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>
On Sat, Nov 6, 2021 at 9:21 AM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> Could "time" invoke getrusage(RUSAGE_THREAD) before and after and
> print the difference?
That's a possibility. It'd only work on a subset of OSs, I think.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author