btClock Class Reference

The btClock is a portable basic clock that measures accurate time in seconds, use for profiling. More...

#include <btQuickprof.h>

List of all members.

Public Member Functions

 btClock ()
 ~btClock ()
void reset ()
 Resets the initial reference time.
unsigned long int getTimeMilliseconds ()
 Returns the time in ms since the last call to reset or since the btClock was created.
unsigned long int getTimeMicroseconds ()
 Returns the time in us since the last call to reset or since the Clock was created.

Private Attributes

struct timeval mStartTime

Detailed Description

The btClock is a portable basic clock that measures accurate time in seconds, use for profiling.

Definition at line 64 of file btQuickprof.h.


Constructor & Destructor Documentation

btClock::btClock (  )  [inline]

Definition at line 67 of file btQuickprof.h.

btClock::~btClock (  )  [inline]

Definition at line 75 of file btQuickprof.h.


Member Function Documentation

unsigned long int btClock::getTimeMicroseconds (  )  [inline]

Returns the time in us since the last call to reset or since the Clock was created.

Definition at line 161 of file btQuickprof.h.

unsigned long int btClock::getTimeMilliseconds (  )  [inline]

Returns the time in ms since the last call to reset or since the btClock was created.

Definition at line 103 of file btQuickprof.h.

void btClock::reset (  )  [inline]

Resets the initial reference time.

Definition at line 80 of file btQuickprof.h.


Member Data Documentation

struct timeval btClock::mStartTime [read, private]

Definition at line 227 of file btQuickprof.h.


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

Generated on Mon Feb 15 22:21:56 2010 for Bullet Collision Detection & Physics Library by  doxygen 1.6.1