diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-06-01 13:57:38 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-06-01 13:57:38 +0200 |
commit | 01162614075eef7d3adce4d7d5412fc4146827be (patch) | |
tree | 3a88537a5db9832396fc6c01e8faa53a7d1ddd9f /bench/BenchTimer.h | |
parent | e2097c55f8b130cac62d52af2cd7d8717ec0d5c1 (diff) |
make BenchTimer compatible with 2.0 branch
Diffstat (limited to 'bench/BenchTimer.h')
-rw-r--r-- | bench/BenchTimer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/BenchTimer.h b/bench/BenchTimer.h index 0a0a5e154..567064360 100644 --- a/bench/BenchTimer.h +++ b/bench/BenchTimer.h @@ -87,7 +87,12 @@ public: { m_times[CPU_TIMER] = getCpuTime() - m_starts[CPU_TIMER]; m_times[REAL_TIMER] = getRealTime() - m_starts[REAL_TIMER]; + #if EIGEN_VERSION_AT_LEAST(2,90,0) m_bests = m_bests.cwiseMin(m_times); + #else + m_bests(0) = std::min(m_bests(0),m_times(0)); + m_bests(1) = std::min(m_bests(1),m_times(1)); + #endif m_totals += m_times; } |