along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <cstdio>
-#include <pbd/error.h>
-#include <ardour/cycle_timer.h>
+#include "pbd/error.h"
+#include "ardour/cycle_timer.h"
#include "i18n.h"
+using namespace PBD;
+
float CycleTimer::cycles_per_usec = 0;
float
CycleTimer::get_mhz()
{
FILE *f;
-
+
if ((f = fopen("/proc/cpuinfo", "r")) == 0) {
fatal << _("CycleTimer::get_mhz(): can't open /proc/cpuinfo") << endmsg;
/*NOTREACHED*/
}
}
- fatal << _("cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
+ fatal << _("cannot locate cpu MHz in /proc/cpuinfo") << endmsg;
/*NOTREACHED*/
return 0.0f;
}