/*
- Copyright (C) 2002 Paul Davis
+ Copyright (C) 2002 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <string>
#include <iostream>
-#include <ardour/cycles.h>
+#include "ardour/cycles.h"
class CycleTimer {
private:
cycles_t _entry;
cycles_t _exit;
std::string _name;
-
+
public:
CycleTimer(std::string name) : _name (name){
if (cycles_per_usec == 0) {
}
~CycleTimer() {
_exit = get_cycles();
- std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" << _entry << ", " << _exit << ')' << endl;
+ std::cerr << _name << ": " << (float) (_exit - _entry) / cycles_per_usec << " (" << _entry << ", " << _exit << ')' << std::endl;
}
static float get_mhz ();