On Mon, Oct 3, 2022 at 7:39 AM Marc Nieper-Wißkirchen <[email protected]>
wrote:


> There is possibly an alternative solution, namely abstract time
> objects (like those of SRFI 18).  This solution would make it an error
> if the TIMEOUT parameter is a raw number.  Instead, it would have to
> be wrapped into a call of (jiffies->time ...) or (seconds->time ...)
> or (jiffies->time-delta ...) or ...
>

I like this idea.  However, the time objects of SRFI 18 are integers
measuring 1/10 seconds.  I recommend that the time objects of SRFI 19 be
used instead: they are integers representing seconds and nanoseconds plus a
flag indicating the significance, which in this case should be the symbol
`duration`.  (SRFI 170 also has time objects, but I intend to create a
post-finalization note recommending the use of SRFI 19 time objects as an
alternative, in order to have a uniform representation of time.)

Reply via email to