Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed Dec 15, 2011
1 parent 54f0a91 commit 18921eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include.mk
@@ -1,4 +1,6 @@

# TODO add options from http://www.antoarts.com/the-most-useful-gcc-options-and-extensions/
#
############################################################################ CONFIG

# to set speed run as: make s=o
Expand Down
4 changes: 2 additions & 2 deletions t-memoize.cc
Expand Up @@ -4,8 +4,8 @@
#include <iostream>
using namespace std;

int f (int i) { cout << "f(" << i << ")\n"; return i+1; };
int ff (int i, int j) { cout << "f(" << i << ", " << j << ")\n"; return i+j; };
int f (int i) { cout << "f(" << i << ")\n"; return i+1; };
int ff (int i, int j) { cout << "f(" << i << ", " << j << ")\n"; return i+j; };


int main() {
Expand Down
4 changes: 4 additions & 0 deletions timer.h
Expand Up @@ -22,6 +22,8 @@

namespace lvv {

// TR http://www.viva64.com/en/b/0097/

/* OpenMP thread time?
double omp_time = 0;
double last_omp_time;
Expand Down Expand Up @@ -71,6 +73,8 @@
static ostream& operator<< (ostream& os, Timer& t) __attribute__((unused)) ;

class Timer { //=========================================== TIMER
// TR http://www.viva64.com/en/b/0097/
// -------------
// article about hi-res timers: http://www.devx.com/cplus/Article/35375/0/page/2
// see also OpenMP timer: http://gcc.gnu.org/onlinedocs/libgomp/omp_005fget_005fwtime.html#omp_005fget_005fwtime
// ---
Expand Down

0 comments on commit 18921eb

Please sign in to comment.