[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SECONDS=0 does not reset SECONDS, or I'm missing something
From: |
Chet Ramey |
Subject: |
Re: SECONDS=0 does not reset SECONDS, or I'm missing something |
Date: |
Fri, 5 Jun 2020 11:42:04 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/5/20 7:26 AM, Greg Wooledge wrote:
> Perhaps something like this would work:
>
> SECONDS
> Expands to the difference between the current system time
> (in seconds) and the system time (in seconds) at shell
> invocation. If a value is assigned to SECONDS, the value
> returned upon subsequent references is the value assigned
> plus the difference between the current system time (in
> seconds) and the system time (in seconds) upon assignment.
>
> Feel free to use that, or tweak it, or discard it. I'm not thrilled
> with the quadruple repetition of "system time (in seconds)" but I can't
> think of a clearer way to express it at the moment.
How about just adding a sentence that says the number of seconds at startup
and the current time is always determined by querying the system clock.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Chet Ramey, 2020/06/04
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Tim Visher, 2020/06/04
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Andreas Kusalananda Kähäri, 2020/06/04
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Greg Wooledge, 2020/06/05
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something,
Chet Ramey <=
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Greg Wooledge, 2020/06/05
- Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Andreas Kusalananda Kähäri, 2020/06/05
Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Chet Ramey, 2020/06/05
Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Tim Visher, 2020/06/05
Re: SECONDS=0 does not reset SECONDS, or I'm missing something, Mike Jonkmans, 2020/06/05