#include <unistd.h>#include <Eigen/Core>

Go to the source code of this file.
Classes | |
| class | Eigen::BenchTimer |
Namespaces | |
| namespace | Eigen |
Defines | |
| #define | BENCH(TIMER, TRIES, REP, CODE) |
Enumerations | |
| enum | { Eigen::CPU_TIMER = 0, Eigen::REAL_TIMER = 1 } |
{ \
TIMER.reset(); \
for(int uglyvarname1=0; uglyvarname1<TRIES; ++uglyvarname1){ \
TIMER.start(); \
for(int uglyvarname2=0; uglyvarname2<REP; ++uglyvarname2){ \
CODE; \
} \
TIMER.stop(); \
} \
}
Definition at line 157 of file BenchTimer.h.