X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/faust-0.9.47mr3/compiler/errors/timing.cpp?ds=inline diff --git a/interpretor/faust-0.9.47mr3/compiler/errors/timing.cpp b/interpretor/faust-0.9.47mr3/compiler/errors/timing.cpp deleted file mode 100644 index ac35163..0000000 --- a/interpretor/faust-0.9.47mr3/compiler/errors/timing.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include -#ifndef WIN32 -#include -#endif -#include "timing.hh" - -using namespace std; - - -#if 0 -double mysecond() -{ - struct timeval tp; - struct timezone tzp; - int i; - - i = gettimeofday(&tp,&tzp); - return ( (double) tp.tv_sec + (double) tp.tv_usec * 1.e-6 ); -} - -int lIndex=0; -double lStartTime[1024]; -double lEndTime[1024]; - -static void tab (int n, ostream& fout) -{ - fout << '\n'; - while (n--) fout << '\t'; -} - -void startTiming (const char* msg) -{ - assert(lIndex < 1023); - tab(lIndex, cerr); cerr << "start " << msg << endl; - lStartTime[lIndex++] = mysecond(); -} - -void endTiming (const char* msg) -{ - assert(lIndex>0); - lEndTime[--lIndex] = mysecond(); - tab(lIndex, cerr); cerr << "end " << msg << " (duration : " << lEndTime[lIndex] - lStartTime[lIndex] << ")" << endl; -} - -#else - -void startTiming (const char* msg) -{} - -void endTiming (const char* msg) -{} - -#endif -