<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Matt,<BR>
<BR>
It looks like Darwin does not use glibc.&nbsp;  Unfortunately, I haven't been able to nail down exactly which libraries are used.&nbsp;  In any case, I found at least one other instance where someone porting something to Darwin had to include &lt;sys/time.h&gt; (before including &lt;sys/resource.h&gt;) in order to use getrusage().<BR>
<BR>
Laci,<BR>
<BR>
I was able to get this to run on Darwin, but had to make the changes shown below because of the issue described above.<BR>
<BR>
</FONT><FONT COLOR="#000000" FACE="Monaco" FAMILY="FIXED" SIZE="1">// Copyright (C) 2002, International Business Machines<BR>
// Corporation and others.&nbsp;  All Rights Reserved.<BR>
<BR>
#ifndef _CoinTime_hpp<BR>
#define _CoinTime_hpp<BR>
<BR>
//#############################################################################<BR>
<BR>
#include &lt;ctime&gt;<BR>
#if defined(_MSC_VER)<BR>
// Turn off compiler warning about long names<BR>
#&nbsp;  pragma warning(disable:4786)<BR>
#elif defined(__MACH__)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  // Added these lines<BR>
#&nbsp;  include &lt;sys/time.h&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  // Added these lines<BR>
#&nbsp;  include &lt;sys/resource.h&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  // Added these lines<BR>
#else<BR>
#&nbsp;  include &lt;sys/resource.h&gt;<BR>
#endif<BR>
<BR>
//#############################################################################<BR>
<BR>
static inline double CoinCpuTime()<BR>
{<BR>
&nbsp;  double cpu_temp;<BR>
#if defined(_MSC_VER)<BR>
&nbsp;  unsigned int ticksnow;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  /* clock_t is same as int */<BR>
 <BR>
&nbsp;  ticksnow = (unsigned int)clock();<BR>
 <BR>
&nbsp;  cpu_temp = (double)((double)ticksnow/CLOCKS_PER_SEC);<BR>
#else<BR>
&nbsp;  struct rusage usage;<BR>
&nbsp;  getrusage(RUSAGE_SELF,&amp;usage);<BR>
&nbsp;  cpu_temp = usage.ru_utime.tv_sec;<BR>
&nbsp;  cpu_temp += 1.0e-6*((double) usage.ru_utime.tv_usec);<BR>
#endif<BR>
&nbsp;  return cpu_temp;<BR>
}<BR>
<BR>
//#############################################################################<BR>
<BR>
#endif<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>