Subj : Re: Solaris real-time thread capabilities To : comp.unix.solaris,comp.programming.threads From : Greg Menke Date : Wed Sep 07 2005 03:37 pm capnwhit@yahoo.com writes: > Greg Menke wrote: > > Should be handling rollover of your delta; > > Oops, sorry, should be; > > if( t2 > t1 ) diff = t2 - t1; else diff = (((hrtime_t)-1) - t1) + t2; > > > Hello Greg, Indeed it should! I will fix the hacked little test program > I posted and re-run it (also with a histogram style output). Thanks for > pointing that out... I am a firm believer in code-reviews! Actually my bad, later on I read the bottom of the gethrtime manpage which says they already guarantee no rollover between values (presumably those sampled closely enough). So no if/else clause is needed. Gregm .