From: Charles S. <bas...@ch...> - 2011-03-04 21:07:03
|
On Mar 4, 2011, at 11:50 AM, Joseph Oswald wrote: > 4) timer_unix.cpp with __MACH__ true (as it is on Mac OS X) is incompatible with the struct timeval chosen for tm_time_t. I can fix that, by converting tv_usec to tv_nsec, but I'm not sure what other Mach targets want. Do other Mach targets use HAVE_CLOCK_GETTIME? Should Mac OS X configuration be altered to pick struct timespec? Should I special case timer_unix.cpp to separate Mac OS X from other Mach targets? The tm_time_t should be a mach_timespec_t when __MACH__ is true. However, if you can improve the timer, go to town. That precise timer code has never worked as well as hoped, to the point where a lot of people have just been #ifdefing it out. I don’t believe there are any other Mach targets other than Mac OS X currently in use. Charles |