Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Member Functions | Protected Attributes

Eigen::BenchTimer Class Reference

#include <BenchTimer.h>

List of all members.

Public Member Functions

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)

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.


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

Generated by  Doxygen 1.6.0   Back to index