Re: [q-lang-users] Q 7.11 on Mac OS X
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-03-06 11:02:54
|
Ryan Schmidt wrote: > "No manual entry for clock_gettime" Ok, so that probably means that the highres timers aren't available. Anyway, I've corrected the checks for the availability of these and various related features, so that they should now properly detect their absence on OS X, as well as on older Cygwin systems. Patch is attached. Ryan, could you please check whether this builds ok now? Sorry for the hassle, I should maybe have pointed you to RC3 so that we could have checked this before the final release. But I was pretty sure that OS X would have these, as they've been in POSIX for a while and AFAIK FreeBSD has them, too. NOTE to OS X users: What this means for Q programmers on OS X is that the new highres timers in the system module (Q functions nanotime, nanosleep etc.) won't be available for that platform. Of course, you can still use the built-in time and sleep functions, which will automagically use the best timers available on a system (on Unix systems without clock_gettime et al this will usually be the C functions gettimeofday and nanosleep). Alas, these will only work with wall clock time, whereas the new functions also offer a monotonic clock and per-process/per-thread cpu clocks. But maybe someone feels inclined to bug the Darwin developers about implementing clock_gettime and friends, so that they will work in a future OS X version? ;-) Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |