Subj : Re: Solaris real-time thread capabilities To : comp.unix.solaris,comp.programming.threads From : Greg Menke Date : Tue Sep 06 2005 10:31 pm Greg Menke writes: > Should be handling rollover of your delta; > > if( t2 > t1 ) diff = t2 - t1; else diff = t1 - t2; Oops, sorry, should be; if( t2 > t1 ) diff = t2 - t1; else diff = (((hrtime_t)-1) - t1) + t2; Dunno the maxval of hrtime_t- just a guess, but the old one is certainly wrong. Doesn't change the program results though. Gregm .