FAUST compiler  0.9.9.6b8
Functions
timing.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void startTiming (const char *msg)
 
void endTiming (const char *msg)
 

Function Documentation

void endTiming ( const char *  msg)

Definition at line 43 of file timing.cpp.

References gTimingSwitch, lEndTime, lIndex, lStartTime, mysecond(), and tab().

Referenced by main(), ScalarCompiler::prepare(), and ScalarCompiler::prepare2().

44 {
45  if (gTimingSwitch) {
46  assert(lIndex>0);
47  lEndTime[--lIndex] = mysecond();
48  tab(lIndex, cerr); cerr << "end " << msg << " (duration : " << lEndTime[lIndex] - lStartTime[lIndex] << ")" << endl;
49  }
50 }
static void tab(int n, ostream &fout)
Definition: timing.cpp:28
double lEndTime[1024]
Definition: timing.cpp:26
double lStartTime[1024]
Definition: timing.cpp:25
bool gTimingSwitch
Definition: main.cpp:115
double mysecond()
Definition: timing.cpp:14
int lIndex
Definition: timing.cpp:24

Here is the call graph for this function:

Here is the caller graph for this function:

void startTiming ( const char *  msg)

Definition at line 34 of file timing.cpp.

References gTimingSwitch, lIndex, lStartTime, mysecond(), and tab().

Referenced by main(), ScalarCompiler::prepare(), and ScalarCompiler::prepare2().

35 {
36  if (gTimingSwitch) {
37  assert(lIndex < 1023);
38  tab(lIndex, cerr); cerr << "start " << msg << endl;
39  lStartTime[lIndex++] = mysecond();
40  }
41 }
static void tab(int n, ostream &fout)
Definition: timing.cpp:28
double lStartTime[1024]
Definition: timing.cpp:25
bool gTimingSwitch
Definition: main.cpp:115
double mysecond()
Definition: timing.cpp:14
int lIndex
Definition: timing.cpp:24

Here is the call graph for this function:

Here is the caller graph for this function: