Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: time command with shell builtins
- X-seq: zsh-users 28782
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: time command with shell builtins
- Date: Wed, 25 Jan 2023 13:58:07 +0100
- Archived-at: <https://zsh.org/users/28782>
- In-reply-to: <CAHYJk3TUHNHMN_hFsO3qt4P5jiwxjPFUBKkY+9JpcVVvFH0CjA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <Y86OR0DCpwfSYCXU@localhost> <CAN=4vMqSxEr-K1xg+fGc9kh2qfiZ31fy7hoDBRNHXXF6pH8eEg@mail.gmail.com> <Y86ZkYooJ9Kf4xCE@localhost> <CAHYJk3QD8NbCqt0LdXshiVf6W3GQLnDzo6-1mj0qCJOTkHFGRA@mail.gmail.com> <Y87Ws8PrZY8W3Oao@localhost> <CAHYJk3Tu5POCU08-g1dr2p284p89Xak5XjLSV6J8gWdQnOXDeA@mail.gmail.com> <Y8+3h5OXqtpkyewM@localhost> <CAH+w=7bRzfF=GS6q6XpFiE6jwDBo3yh32hMZ_knvZK6aLGAnGA@mail.gmail.com> <CAHYJk3TUHNHMN_hFsO3qt4P5jiwxjPFUBKkY+9JpcVVvFH0CjA@mail.gmail.com>
- Reply-to: dominik.vogt@xxxxxx
- Ui-outboundreport: notjunk:1;M01:P0:3FC8iIGCle0=;3swZ5I+mzaM2xpniXsqhdFHHrtr tE9xMeD7Jk7XFHi15rCmXsR1K83+PrdCoNdkNzyQSF/8a0Eoiun3o95Tx+ywTR1GYiwzPIgxf I+xOMkJnK58RUBL+K1KepCEnRhG4FITAZien7mqII9yA2XUMkYdub6zStVLkdCH2e/PPKfKfA gl2BvshN9JsYWHwjdGoKMSifCGNKo0gASgev2bAL8iAouG+z/M3L6B9TWJhvj9rbgTY2cz9wT 5v+fjswnnefbWndvTqKbJhxS3m0YslWEBIpxmx9aSTR2NAibkXPjd2dx/ddVESVFLc6n3lO4K 0tPKPsEFQ34GQ2LPIKv90VbuNkrXOaULNsVTmmcTbmLr7nmLv3dDC+94MjwLx0V6tRPwR3DXi 2KSGjVUUZFmi9U6EPxJHR9wHM8Kj8QLb2Jeq2phbmd+EslmgXoCCpJPZs20a6nV8akj2NZKH1 2yrDYwK/ey1d2O8OQ/ecc+hxHwOcxOsxS22Ne2ZZ//wREDTifaKw/tCK8TxFf8zJk1dQT+LGT 5zrE4FahMvq1n1oOVRbVsSVh05INkGx3PdbknbDjk5X7P3LykWUkzlpuEhCgiMRS6Tp8AsZ0A MfyQ5CauehNqVB7cWQLZRe2Zj0xqemDt/Q8rgbhM4N4NKp5r9LDnbGPo+cNss3UIBQSLsoEto J57jvpQA9V5+lkSq1EMpoqbCK7DbC9wm/YW03dVWbXjA19/LCNjZnr3skpjTGnI5ezHLMsYlg W7e5dXe40NR9ZRatX/lBCQIVyklR3iqt4ApqTbFKnVJXu/Gnt7ZLqWJX55be93dXs9ij6XLqi YZvQRsVEd5Z4xT0Q6lr9g44rQ3Cz6KfhMm9yjvvBCnJj05qGP41JU6ytmcWvllzkFxAOCFIwF Sz8vhlUOJEyzTccPUordPEhMwQoyVUIJJbmKpBv70Q68dKh9CJNAgrYpEPUHhX6aL69T5RHYy gzHwqg==
On Wed, Jan 25, 2023 at 08:43:50AM +0100, Mikael Magnusson wrote:
> On 1/25/23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > On Tue, Jan 24, 2023 at 2:48 AM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> > Out of curiosity, why are you doing math on $EPOCHSECONDS rather than
> > just use $SECONDS?
>
> I also do this in precmd/exec
Actually, I just copied and modified the code from Mikael without
thinking about SECONDS vs. EPOCHSECONDS.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author