TimerCPU Class Reference

CPU Timer Class. More...

#include <timercpu.h>

List of all members.

Public Member Functions

long long getTSC (int bits)
 Get current CPU time stamp.
float read ()
 Read execution time in ms.
 TimerCPU (float freq_)
 Constructor.

Public Attributes

long long beg_clock
 Start time.
float freq
 clock frequency in MHz

Static Private Attributes

static const int bits = 10

Detailed Description

CPU Timer Class.

Definition at line 38 of file timercpu.h.


Constructor & Destructor Documentation

TimerCPU::TimerCPU ( float  freq_  )  [inline]

Constructor.

Sets start time

Parameters:
freq_ clock frequency in MHz

Definition at line 50 of file timercpu.h.


Member Function Documentation

long long TimerCPU::getTSC ( int  bits  )  [inline]

Get current CPU time stamp.

Definition at line 54 of file timercpu.h.

float TimerCPU::read (  )  [inline]

Read execution time in ms.

Sets end time and computes difference in ms

Returns:
execution time

Definition at line 64 of file timercpu.h.


Member Data Documentation

Start time.

Definition at line 43 of file timercpu.h.

const int TimerCPU::bits = 10 [static, private]

Definition at line 40 of file timercpu.h.

clock frequency in MHz

Definition at line 45 of file timercpu.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator


fast_plane_detection
Author(s): Jeannette Bohg
autogenerated on Fri Jan 11 09:37:44 2013