pmtimer and nanouptime

Jonas Trollvik Jonas.Trollvik at telia.com
Tue Jul 20 12:11:29 PDT 2004


Sorry about that,
wasnt thinking very clear when I posted that
I'll think before posting next time

-Jonas
"Matthew Dillon" <dillon at xxxxxxxxxxxxxxxxxxxx> wrote in message
news:200407201814.i6KIEpHN021814 at xxxxxxxxxxxxxxxxxxxxxxx
>
> :but what if you try to replace this
> :  if (nsec >= 1000000000) {
> :  nsec -= 1000000000;
> :  ++tsp->tv_sec;
> :  }
> :with
> :  while (nsec >= 1000000000) {
> :  nsec -= 1000000000;
> :  ++tsp->tv_sec;
> :  }
> :
> :- Jonas Trollvik
> :"YONETANI Tomokazu" <qhwt+dragonfly-bugs at xxxxxxxxxx> wrote in message
>
>     No, that would be a 'hack'... a bad idea that doesn't really solve the
>     problem tha causes nsec to go out of range.
>
> -Matt







More information about the Bugs mailing list