DragonFly BSD
DragonFly bugs List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: pmtimer and nanouptime


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Jul 2004 11:14:51 -0700 (PDT)

: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]