Public Member Functions | Protected Attributes
Eigen::BenchTimer Class Reference

#include <BenchTimer.h>

List of all members.

Public Member Functions

 BenchTimer ()
double best (int TIMER=CPU_TIMER)
double getCpuTime ()
double getRealTime ()
void reset ()
void start ()
void stop ()
double total (int TIMER=CPU_TIMER)
double value (int TIMER=CPU_TIMER)
 ~BenchTimer ()

Protected Attributes

Vector2d m_bests
Vector2d m_starts
Vector2d m_times
Vector2d m_totals

Detailed Description

Elapsed time timer keeping the best try.

On POSIX platforms we use clock_gettime with CLOCK_PROCESS_CPUTIME_ID. On Windows we use QueryPerformanceCounter

Important: on linux, you must link with -lrt

Definition at line 60 of file BenchTimer.h.


Constructor & Destructor Documentation

Definition at line 64 of file BenchTimer.h.

Definition at line 74 of file BenchTimer.h.


Member Function Documentation

double Eigen::BenchTimer::best ( int  TIMER = CPU_TIMER) [inline]

Return the best elapsed time in seconds

Definition at line 108 of file BenchTimer.h.

double Eigen::BenchTimer::getCpuTime ( ) [inline]

Definition at line 120 of file BenchTimer.h.

double Eigen::BenchTimer::getRealTime ( ) [inline]

Definition at line 133 of file BenchTimer.h.

void Eigen::BenchTimer::reset ( ) [inline]

Definition at line 76 of file BenchTimer.h.

void Eigen::BenchTimer::start ( ) [inline]

Definition at line 81 of file BenchTimer.h.

void Eigen::BenchTimer::stop ( void  ) [inline]

Definition at line 86 of file BenchTimer.h.

double Eigen::BenchTimer::total ( int  TIMER = CPU_TIMER) [inline]

Return the total elapsed time in seconds.

Definition at line 115 of file BenchTimer.h.

double Eigen::BenchTimer::value ( int  TIMER = CPU_TIMER) [inline]

Return the elapsed time in seconds between the last start/stop pair

Definition at line 101 of file BenchTimer.h.


Member Data Documentation

Vector2d Eigen::BenchTimer::m_bests [protected]

Definition at line 152 of file BenchTimer.h.

Vector2d Eigen::BenchTimer::m_starts [protected]

Definition at line 150 of file BenchTimer.h.

Vector2d Eigen::BenchTimer::m_times [protected]

Definition at line 151 of file BenchTimer.h.

Vector2d Eigen::BenchTimer::m_totals [protected]

Definition at line 153 of file BenchTimer.h.


The documentation for this class was generated from the following file:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:30