Re: [concurrency-interest] Durations in existing JDK APIs

2018-06-01 Thread Gregg Wonderly
I am not sure I understand this implementation, but isn’t >long s = convert(duration.getSeconds(), SECONDS); needing to actually be >long s = convert(duration.getSeconds(), NANOSECONDS); so that s+n is in a common unit of measure? Gregg > On May 30, 2018, at 7:19 PM, Martin B

Re: [concurrency-interest] Durations in existing JDK APIs

2018-05-30 Thread Martin Buchholz
On Wed, May 30, 2018 at 7:43 PM, Gregg Wonderly wrote: > I am not sure I understand this implementation, but isn’t > > >long s = convert(duration.getSeconds(), SECONDS); > > needing to actually be > > >long s = convert(duration.getSeconds(), NANOSECONDS); > > so that s+n is in a c