Classes | Namespaces | Macros | Enumerations | Functions
BenchTimer.h File Reference
#include <unistd.h>
#include <Eigen/Core>
Include dependency graph for BenchTimer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Eigen::BenchTimer
 

Namespaces

 Eigen
 Namespace containing all symbols from the Eigen library.
 

Macros

#define BENCH(TIMER, TRIES, REP, CODE)
 

Enumerations

enum  { Eigen::CPU_TIMER = 0, Eigen::REAL_TIMER = 1 }
 

Functions

static void clobber ()
 
static void escape (void *p)
 

Macro Definition Documentation

◆ BENCH

#define BENCH (   TIMER,
  TRIES,
  REP,
  CODE 
)
Value:
{ \
TIMER.reset(); \
for(int uglyvarname1=0; uglyvarname1<TRIES; ++uglyvarname1){ \
TIMER.start(); \
for(int uglyvarname2=0; uglyvarname2<REP; ++uglyvarname2){ \
CODE; \
} \
TIMER.stop(); \
clobber(); \
} \
}

Definition at line 174 of file BenchTimer.h.

Function Documentation

◆ clobber()

static void clobber ( )
static

Definition at line 36 of file BenchTimer.h.

◆ escape()

static void escape ( void *  p)
static

Definition at line 30 of file BenchTimer.h.

TRIES
#define TRIES
Definition: bench_reverse.cpp:12


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:45