| I'd suggest using concurrency instead of Select
Indeed. But it is true to say that Select.select's timeout
parameter could usefully be generalised to either an Integer or
a TimeVal (i.e. (sec,usec) pair). Since this library isn't
an H98 standard, it might be worth just doing this, no?
I think Ian is also write to say that the H98 Time library
doesn't provide a usable way to take the difference between
two ClockTimes. diffClockTime yields a TimeDiff, which has
tdYear and tdMonth fields; and I don't see how to convert these to
a time difference in seconds.
Maybe we should somewhere (ideally in Time, but that's fixed for
H98, so we'd better not fiddle) provide a way to subtract two
ClockTimes and get a difference in seconds (or (sec,usec) to get
more precision...?). Really that's what TimeDiff was for, but
it doesn't seem right.
This is the second Time-library-related issue in a few weeks.
Does anyone out there know about Times in all their glory and
feel like taking up the challenge?
Simon