DragonFly bugs List (threaded) for 2004-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: pmtimer and nanouptime
Sorry about that,
wasnt thinking very clear when I posted that
I'll think before posting next time
-Jonas
"Matthew Dillon" <dillon@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:200407201814.i6KIEpHN021814@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@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]